summaryrefslogtreecommitdiff
path: root/docutils/writers/docutils_xml.py
Commit message (Collapse)AuthorAgeFilesLines
* py3: Handle 'StringIO' to 'io' transition.milde2019-08-271-1/+6
| | | | | | | | | This isn't so much a rename as a migration, since things don't do the same thing. Based on patch by: Stephen Finucane <stephen@that.guru> git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8368 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Formatting changes to facilitate integration of "py3" patchset.milde2019-08-271-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8367 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Consistent Python 3 checks.milde2019-08-261-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8360 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* py3: Add aliases for removed symbolsmilde2019-08-261-0/+3
| | | | | | | | | | Add aliases for symbols that have been removed in Python 3.x, namely basestring, unicode, unichr and StandardError. Signed-off-by: Stephen Finucane <stephen@that.guru> small fixes by Günter Milde. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8348 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* py3: Switch to 'except foo as bar' syntaxmilde2019-08-261-1/+1
| | | | | | | | This is the only form supported in Python 3.x. Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8347 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* trivial: Remove obsolete PyXML handling codemilde2019-08-261-13/+0
| | | | | | | | | PyXML is dead and doesn't support any of the Python versions we use. No need to keep worrying about it screwing with stdlib's XML libraries. Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8342 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix patches/146 Import ContentHandler class correctly.milde2018-11-211-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8240 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* docutils-xml writer: Fix/improve output with "newlines and "indent".milde2016-08-181-4/+16
| | | | | | | | | | | xmllint says empty elements must not have linebreaks inbetween (regards transition, image and cospec elements). Indent text, unless it is FixedText (literal etc.). Add a functional test for docutils-xml. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7966 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.milde2012-08-161-0/+13
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7497 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* XML writer overhaul (use visitor pattern, raw XML pass through).milde2012-01-181-19/+124
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7315 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix 3423983 DocutilsXMLTestCase with indent and newlines optionsmilde2011-11-241-2/+3
| | | | | | | Add sample strings with the new XML formatting introduced in versions 2.7.3 and 3.2.3 on 2011-11-18 to fix http://bugs.python.org/issue4147 git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7226 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* use $Id$ instead of $Date$ and $Revision$;wiemann2006-05-211-4/+2
| | | | | | | | collapsed Author and Contact fields; use canonical email addresses for David and Felix; (I have reviewed the diff) git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@4564 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* made xmlcharrefreplace the default output encoding error handler forwiemann2005-06-191-0/+2
| | | | | | HTML and XML writer git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@3512 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* updatedwiemann2004-06-051-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@2223 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* updated for setting validatorsgoodger2003-09-011-7/+11
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@1663 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Updated for configuration file reorganization.goodger2003-08-271-0/+3
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@1645 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added "--no-doctype" and "--no-xml-declaration" options.goodger2002-11-281-6/+16
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@979 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Refactored names (options -> settings; .transform() -> .apply(); etc.); updated.goodger2002-10-181-5/+5
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@825 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* changed docstring field lists into commentsgoodger2002-10-091-7/+5
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@778 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixedgoodger2002-09-251-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@719 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added XML and doctype declarations.goodger2002-09-241-3/+18
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@713 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added to project; trivial writer of the Docutils internal doctree in XML.goodger2002-07-041-0/+43
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@244 929543f6-e4f2-0310-98a6-ba3bd3dd1d04