Page MenuHomePhabricator

Newlines after comments don't round-trip
Closed, ResolvedPublic

Description

Test cases:
echo -e '<!-- comment -->\n\n\nfoo' | node parse --wt2wt
echo -e '<!-- comment -->\n\nfoo' | node parse --wt2wt

This might be solvable by relaxing the newline separator constraints if the previousSiblings are newlines preceded by a bare comment.


Version: unspecified
Severity: normal

Details

Reference
bz49765

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:03 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz49765.

Increasing priority as this is not hidden by selective serialization if any of the siblings of this parent are modified.

https://gerrit.wikimedia.org/r/69795 (Gerrit Change Ifa13f93906f09c6d7d019e6b652d11fa48ca2420) | change APPROVED and MERGED [by jenkins-bot]