Last modified: 2013-02-15 19:32:18 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 T47018, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45018 - Parsoid serializer adds trailing newline
Parsoid serializer adds trailing newline
Status: RESOLVED INVALID
Product: Parsoid
Classification: Unclassified
serializer (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-14 21:42 UTC by Roan Kattouw
Modified: 2013-02-15 19:32 UTC (History)
4 users (show)

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


Attachments

Description Roan Kattouw 2013-02-14 21:42:30 UTC
This doesn't happen when using /_rt/ or /_html/ , but it does happen when POSTing content directly to a page:

1. Create a very simple page (such as one with a single line of text)
2. Open it in the editor
3. Bold a word
4. Attempt to save the page
5. The diff will show a trailing newline being added

I'm guessing there might be trailing newlines in the HTTP output from Parsoid, which then aren't stripped because Parsoid doesn't set a Content-Length header.
Comment 1 Roan Kattouw 2013-02-15 19:32:18 UTC
Upgrading JSDOM to >= 0.4 fixes this.

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


Navigation
Links