Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue1343] XMLGenerator: nice <empty/> elements

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

May 10, 2008, 11:11 AM

Post #1 of 3 (38 views)
Permalink
[issue1343] XMLGenerator: nice <empty/> elements

Jonathan Hitchcock <jonathan[at]vhata.net> 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.sax.saxutils.patch

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1343>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 10, 2008, 11:12 AM

Post #2 of 3 (37 views)
Permalink
[issue1343] XMLGenerator: nice <empty/> elements [In reply to]

Jonathan Hitchcock <jonathan[at]vhata.net> 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 <report[at]bugs.python.org>
<http://bugs.python.org/issue1343>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 10, 2008, 11:37 AM

Post #3 of 3 (37 views)
Permalink
[issue1343] XMLGenerator: nice <empty/> elements [In reply to]

Jonathan Hitchcock <jonathan[at]vhata.net> 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-feeling idea for
the name, before I checked the W3C standard and found that they called
them "Empty-Elements tags") instead.

Added file: http://bugs.python.org/file10264/short_empty_tag.patch

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1343>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.