[issue1343] XMLGenerator: nice elements

2008-05-10 Thread Jonathan Hitchcock
Jonathan Hitchcock <[EMAIL PROTECTED]> added the comment: Acting on a comment (with which I agree) that the "empty_elements_tag" wasn't such an obvious name, here's a (combined) patch which uses the name "short_empty_elements" (which was my original gut

[issue1343] XMLGenerator: nice elements

2008-05-10 Thread Jonathan Hitchcock
Jonathan Hitchcock <[EMAIL PROTECTED]> added the comment: I have also added some unit tests to test the feature with the option turned on, and off - patch attached. Added file: http://bugs.python.org/file10262/test.test_sax.py.patch __ Tracker <[EMAIL

[issue1343] XMLGenerator: nice elements

2008-05-10 Thread Jonathan Hitchcock
Jonathan Hitchcock <[EMAIL PROTECTED]> added the comment: The attached patch makes this new feature optional, by passing the "empty_element_tag" option to the constructor. -- nosy: +vhata Added file: http://bugs.python.org/file10261/xml.sa