On 10 May 2022, at 13:47, codecompl...@free.fr wrote:

Hello,

This is a newbie question.

While editing HTML files on Windows, ie. line ends with 0D0A, lxml adds before each end of line:

I'm not quite sure what you mean. The lines end with the string "0D0A"? Or with the \r\n (carriage return, line feed)? If the latter then you probably need to load the file in binary mode.

It would be easier to help if you could provide a small sample file.

Charlie

--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Sengelsweg 34
Düsseldorf
D- 40489
Tel: +49-203-3925-0390
Mobile: +49-178-782-6226
_______________________________________________
lxml - The Python XML Toolkit mailing list -- lxml@python.org
To unsubscribe send an email to lxml-le...@python.org
https://mail.python.org/mailman3/lists/lxml.python.org/
Member address: arch...@mail-archive.com

Reply via email to