[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2019-06-22 Thread Mitar
Change by Mitar : -- nosy: +mitar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2014-02-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2013-03-30 Thread Daniele Varrazzo
Daniele Varrazzo added the comment: Added separate issue #17582 as ElementTree implementation doesn't depend on whatever causes the bug in xml.dom.minidom. -- ___ Python tracker

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2013-03-28 Thread Daniele Varrazzo
Daniele Varrazzo added the comment: I was going to open an issue on itself about etree and tabs, but I've found this and thought it would have been marked as duplicate. If you don't think it's the case I will open it anyway. I've added my comment because ElementTree is not reported in this pag

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2013-03-28 Thread Daniele Varrazzo
Daniele Varrazzo added the comment: ElementTree issue is with tabs: In [1]: import xml.etree.cElementTree as etree In [2]: doc = etree.fromstring('') In [4]: doc.set('attr', "here\tthere") In [5]: etree.tostring(doc) Out[5]: '' In [6]: etree.fromstring(_5).attrib['att

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2013-03-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: minidom may be broken, but what's the issue with ElementTree? >>> import xml.etree.cElementTree as etree >>> doc = etree.fromstring('') >>> doc.set('attr', "multiline\nvalue") >>> etree.tostring(doc) '' -- nosy: +amaury.forgeotdarc __

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2013-03-27 Thread Daniele Varrazzo
Daniele Varrazzo added the comment: Just got bitten by this bug, which affects xml.etree.ElementTree and cElementTree too. Any chance to have it fixed? Note that lxml.etree is not affected by the bug and can be used as a replacement for the stdlib module if you happen to have some work to do.

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2011-08-25 Thread Yap Sok Ann
Yap Sok Ann added the comment: Just want to mention that until the patch get included, it will be impossible to use the standard library to generate a working BCP (Bulk Copy Program) XML format file for SQL Server, which always requires a TERMINATOR="\r\n" or TERMINATOR=" " attribute. -

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2011-05-10 Thread Jens Grivolla
Changes by Jens Grivolla : -- nosy: +Jens.Grivolla ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2010-10-27 Thread Ralph Gauges
Ralph Gauges added the comment: I tried to apply the minidom.diff patch below, but it seems that removing the two lines that replace the "<" and ">" characters is not a good idea. It least in some files I now suddenly get "<" and ">" characters in text elements where there should be > and < A

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2010-08-03 Thread W. Trevor King
W. Trevor King added the comment: And while we're at it, we should also .replace('&', '&').replace('"', """).replace('<', '<') which would have to go at the beginning to avoid double-escaping the '&'. We could use xml.sax.saxutils.escape to do all the escaping rather than chaining replace

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2010-08-02 Thread W. Trevor King
W. Trevor King added the comment: As a workaround until the patch gets included, you can import this monkey patch module. -- nosy: +labrat Added file: http://bugs.python.org/file18325/minidom.py ___ Python tracker

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2010-07-26 Thread Ezio Melotti
Ezio Melotti added the comment: #7139 has been closed as duplicate of this and contains a few messages that might be worth reading. -- nosy: +effbot, ezio.melotti, moriyoshi ___ Python tracker

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2010-07-24 Thread Mark Lawrence
Mark Lawrence added the comment: minidom.patch had the new file listed before the old, so I've uploaded minidom.diff. The patch is tiny and looks clean. Tests have been repeated on Windows against 2.7 and are fine, so I believe this can be committed. -- Added file: http://bugs.pytho

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2010-07-20 Thread Mark Lawrence
Mark Lawrence added the comment: Patched test_minidom and ran it test failed. Went to patch minidom.py and it appears up to date, so no idea why the test failed, can someone please take a look as it's 04:30 BST, thanks. -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.2 ___

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2009-07-18 Thread Tomalak
Tomalak added the comment: @devon: Thanks for pointing & linking back here. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2009-07-15 Thread Devon
Devon added the comment: see also a similar issue in etree: #6492 -- nosy: +devon ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2009-05-13 Thread Francesco Sechi
Changes by Francesco Sechi : -- nosy: -sechi_francesco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2009-05-13 Thread Tomalak
Changes by Tomalak : -- title: xml.dom.minidom does not escape newline characters within attribute values -> xml.dom.minidom does not escape CR, LF and TAB characters within attribute values ___ Python tracker ___