lxml.html.tostring fails to dump node tail in HTML
Bug #1185332 reported by
Sylvain Viollon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Low
|
Unassigned |
Bug Description
If you parse (with lxml.html.
<p><i>Really dude<i>\r\n</p>\r\n
You will obtain the following result:
<p><i>Really dude<i>
This happens because _writeTail defined in serializer.pxi fails to use tree.htmlNodeDu
Version of lxml used: 3.2.1 (latest at the moment).
To post a comment you must log in.
I made a patch on github with a pull request: https:/ /github. com/lxml/ lxml/pull/ 121.