Hi, Charlie I think he refers to *both cases* the bytes 0x0d0x0a or b'\r\n' produce the entity when pretty_printing...
Rgds, /PA On Wed, 11 May 2022 at 10:22, Charlie Clark < [email protected]> wrote: > On 10 May 2022, at 13:47, [email protected] 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 -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/lxml.python.org/ > Member address: [email protected] > -- Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet
_______________________________________________ lxml - The Python XML Toolkit mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/lxml.python.org/ Member address: [email protected]
