docutils-xml writer: Fix/improve output with "newlines and "indent".
commit6351d088a3eb6245e2ec0a64df7783c2e9ee0418
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Thu, 18 Aug 2016 13:06:09 +0000 (18 13:06 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Thu, 18 Aug 2016 13:06:09 +0000 (18 13:06 +0000)
treea8559fb264716e6722e21f6107f2c538e9f6e2e5
parentf1cfbaa6be2c8cab486ce52ac16efb04c18f6af1
docutils-xml writer: Fix/improve output with "newlines and "indent".

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: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7966 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
HISTORY.txt
docutils/writers/docutils_xml.py
test/functional/expected/standalone_rst_docutils_xml.xml [new file with mode: 0644]
test/functional/input/standalone_rst_docutils_xml.txt [new file with mode: 0644]
test/functional/tests/standalone_rst_docutils_xml.py [new file with mode: 0644]
test/test_writers/test_docutils_xml.py