Last modified: 2013-07-16 15:23:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T52683, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50683 - Enforce single-line context in the serializer
Enforce single-line context in the serializer
Status: NEW
Product: Parsoid
Classification: Unclassified
serializer (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-03 18:18 UTC by Gabriel Wicke
Modified: 2013-07-16 15:23 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Gabriel Wicke 2013-07-03 18:18:27 UTC
We need to enforce single-line syntactical context in headings and other line-based constructs (lists, paragraphs, etc pp).

Simple test case:

echo -e '<h2>\nfoo</h2>' | node parse --html2wt
==
foo==
Comment 1 Gabriel Wicke 2013-07-03 18:19:04 UTC
This also happens in practice. Dogfooding example:
https://www.mediawiki.org/w/index.php?title=User%3AGWicke&diff=723931&oldid=655405
Comment 2 C. Scott Ananian 2013-07-16 15:14:56 UTC
See also bug 51444.  I'm not merging these bugs because 51444 is filed against VE, and I'm not sure that VE is blameless here (for including the newline in the heading to begin with).
Comment 3 C. Scott Ananian 2013-07-16 15:23:54 UTC
Gwicke's initial commentary on this issue is at http://pastie.org/8146028

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links