[lxml-dev] Question about newlines

Noah Slater nslater at bytesexual.org
Sat Dec 8 23:10:55 CET 2007


Hey,

When serialising a document there are two places that I would expect
lxml to insert newlines and yet there are non.

  1) When adding a PI via the element.addprevious method and PI has
     it's tail trimmed and so when serialising the PI runs into the
     root element.

  2) At the very end of the document. POSIX states that all files must
     end in a newline so I consider this to be a bug.

Perhaps I am missing something, help is much appreciated! :)

Thanks,

-- 
Noah Slater <http://bytesexual.org/>

"Creativity can be a social contribution, but only in so far as
society is free to use the results." - R. Stallman


More information about the lxml-dev mailing list