backslash replaced by null character
Mariusz Wasiluk <[email protected]> Tue, 4 May 2021 17:27:43 +0200
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <CACa3oqwukybytzmLr=ZvZ2cKeA_zvF8M6A-ctv_xRvRD_TQ=KQ@mail.gmail.com> |
Hello, I have following snipped: from docutils.core import publish_doctree dom = publish_doctree(r'Foo\\bar').asdom() print(repr(dom.toxml())) with docutils>=0.16, I get: u'<?xml version="1.0" ?><document source="<string>"><paragraph>Foo\x00\\bar</paragraph></document>' with previous versions I get: u'<?xml version="1.0" ?><document source="<string>"><paragraph>Foo\\bar</paragraph></document>' Why with the newest docutils versions I'm getting \x00 in the output?