[issue37374] Minidom does not have to escape quote inside text segments

2021-03-10 Thread Viktor Plézer
Viktor Plézer added the comment: Sorry, to agree with @mitar -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue37374] Minidom does not have to escape quote inside text segments

2021-03-10 Thread Viktor Plézer
Viktor Plézer added the comment: Almost 2 years later I only registered to agree with Daniel. This is extremely annoying. Use case: I am generating XMLs for Apigee, where my conditions contain quotes and there's no need to escape them. -- nosy: +viplezer

[issue37374] Minidom does not have to escape quote inside text segments

2019-06-29 Thread Daniel Hilst Selli
Daniel Hilst Selli added the comment: Not really, I don't have a use case here. I'm just warning that this would break user code that relies on old behavior. Anyway is possible to add new behavior without changing the old one. A parameter would make this possible, for example. This is only

[issue37374] Minidom does not have to escape quote inside text segments

2019-06-29 Thread Mitar
Mitar added the comment: Sure, but is old behavior useful in any use case? Every bugfix changes old behavior in an irreversible way. So in which use case you want the old behavior? Can you elaborate here? -- ___ Python tracker

[issue37374] Minidom does not have to escape quote inside text segments

2019-06-23 Thread Daniel Hilst Selli
Daniel Hilst Selli added the comment: This changes behavior in an irreversible way. A parameter would make it reversible. -- ___ Python tracker ___ __

[issue37374] Minidom does not have to escape quote inside text segments

2019-06-23 Thread Mitar
Mitar added the comment: FYI, this is exactly how ElementTree.tostring does it. So this would make ElementTree.tostring behave the same as minidom. @dhilst: I do not think a parameter is needed here. This is completely compatible with HTML. It is just that currently an additional unnecessary

[issue37374] Minidom does not have to escape quote inside text segments

2019-06-22 Thread Daniel Hilst Selli
Daniel Hilst Selli added the comment: Wouldn't be better to support this as a parameter? Escaping is pretty useful in HTML contexts -- nosy: +dhilst ___ Python tracker ___ __

[issue37374] Minidom does not have to escape quote inside text segments

2019-06-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +scoder, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue37374] Minidom does not have to escape quote inside text segments

2019-06-22 Thread Mitar
Change by Mitar : -- keywords: +patch pull_requests: +14134 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14312 ___ Python tracker ___ __

[issue37374] Minidom does not have to escape quote inside text segments

2019-06-22 Thread Mitar
New submission from Mitar : I am using Minidom to pretty-print XML. But currently if there is a quote inside a text segment it escapes it to " To my understanding this is unnecessary if all other symbols are escaped. This escaping makes it really ugly and defeats the purpose of me using Minid