Last modified: 2014-01-14 22:17:09 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 T52906, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50906 - Blank lines are dropped from <pre>s by the serializer
Blank lines are dropped from <pre>s by the serializer
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: ssastry
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-07 21:39 UTC by Derk-Jan Hartman
Modified: 2014-01-14 22:17 UTC (History)
8 users (show)

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


Attachments

Description Derk-Jan Hartman 2013-07-07 21:39:11 UTC
As can be seen here: https://en.wikipedia.org/w/index.php?title=User:Bevo&diff=prev&oldid=563114549

When you edit a <pre> block all blank lines are removed from the block.
Comment 1 Ed Sanders 2013-12-05 20:33:55 UTC
Appears parsoid is stripping extra linebreaks in <pre> tags. Maybe even a regression?
Comment 2 ssastry 2013-12-05 22:04:07 UTC
Verified that this bug is still around. This is not a selser issue, but a generic wikitext serialization issue.

[subbu@earth tests] echo "<pre>a\n\nb</pre>" | node parse --html2wt
 a
 
 b
[subbu@earth tests] echo "<pre>a\n\nb\n\nc</pre>" | node parse --html2wt
 a
 b
 c
Comment 3 ssastry 2013-12-05 23:01:47 UTC
Fix in https://gerrit.wikimedia.org/r/#/c/97165/
Comment 4 ssastry 2014-01-14 22:17:09 UTC
This has been merged and deployed.

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


Navigation
Links