<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/docutils.git/docutils/writers/docutils_xml.py, branch docutils-0.20.1</title>
<subtitle>svn.code.sf.net: p/docutils/code
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/'/>
<entry>
<title>New function utils.xml_declaration()</title>
<updated>2022-11-13T16:14:59+00:00</updated>
<author>
<name>milde</name>
<email>milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-11-13T16:14:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=db5f5b102935a161086dd82525d9eedac49bf448'/>
<id>db5f5b102935a161086dd82525d9eedac49bf448</id>
<content type='text'>
Return XML text declaration.
Include an encoding declaration if the intended encoding is known.

Used in XML (and soon also in HTML) writer.

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9239 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Return XML text declaration.
Include an encoding declaration if the intended encoding is known.

Used in XML (and soon also in HTML) writer.

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9239 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Resolve linting warnings from flake8</title>
<updated>2022-11-03T10:52:43+00:00</updated>
<author>
<name>aa-turner</name>
<email>aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-11-03T10:52:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=513c94d7c838f1bbd17282b1a9c23e4d13a51b9a'/>
<id>513c94d7c838f1bbd17282b1a9c23e4d13a51b9a</id>
<content type='text'>
- Rename ``_output_encoding()`` to ``_encoding()`` to shorten line
  length below 80 characters
- Normalise indentation on continuation lines in manpage.py

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9206 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Rename ``_output_encoding()`` to ``_encoding()`` to shorten line
  length below 80 characters
- Normalise indentation on continuation lines in manpage.py

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9206 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Partially revert r9167</title>
<updated>2022-11-02T23:28:49+00:00</updated>
<author>
<name>aa-turner</name>
<email>aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-11-02T23:28:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=92f3753fda69c27c968e65378137f65454122fa0'/>
<id>92f3753fda69c27c968e65378137f65454122fa0</id>
<content type='text'>
``docutils.core.publish_string`` uses Python 2 notion of a
bytestring, such that in the general case it returns Python 3's
``bytes`` type. Revision 9167 attempted to address this distinction
by introducing ``publish_bytes`` and changing ``publish_string`` to
always return unicode text data as Python's ``str`` type. This is a
backwards compatibility break, so in this commit we restore the
previous behaviour, whilst simultaneously deprecating support for
returning binary data from the ``docutils.core.publish_string``
function for at least two releases of Docutils.

As part of this, we also deprecate returning binary data from the
``docutils.io.StringOutput.encode`` method, docutils.io.BytesOutput``
should be used in its stead.

Finally, we update tests for the reversion to the previous behaviour.

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9202 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
``docutils.core.publish_string`` uses Python 2 notion of a
bytestring, such that in the general case it returns Python 3's
``bytes`` type. Revision 9167 attempted to address this distinction
by introducing ``publish_bytes`` and changing ``publish_string`` to
always return unicode text data as Python's ``str`` type. This is a
backwards compatibility break, so in this commit we restore the
previous behaviour, whilst simultaneously deprecating support for
returning binary data from the ``docutils.core.publish_string``
function for at least two releases of Docutils.

As part of this, we also deprecate returning binary data from the
``docutils.io.StringOutput.encode`` method, docutils.io.BytesOutput``
should be used in its stead.

Finally, we update tests for the reversion to the previous behaviour.

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9202 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unused local variables</title>
<updated>2022-03-05T23:31:46+00:00</updated>
<author>
<name>milde</name>
<email>milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-03-05T23:31:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=0a5d3c15d4d32783bd4dd6e0e87c2121b0a2f7fb'/>
<id>0a5d3c15d4d32783bd4dd6e0e87c2121b0a2f7fb</id>
<content type='text'>
flake rule F841: local variable 'foo' is assigned to but never used

In test_odt.py, a no-op class definition is removed completely.

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9038 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
flake rule F841: local variable 'foo' is assigned to but never used

In test_odt.py, a no-op class definition is removed completely.

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9038 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid multiple statements on one line. Fix redundant backslash</title>
<updated>2022-03-05T23:29:06+00:00</updated>
<author>
<name>milde</name>
<email>milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-03-05T23:29:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=39b1aac57576b41e48c5cd26f5e6fe462a0161db'/>
<id>39b1aac57576b41e48c5cd26f5e6fe462a0161db</id>
<content type='text'>
Exceptions for sets of empty class definitions
and other cases where it improves comprehension.

flake8 rules
E502: the backslash is redundant between brackets
E701: multiple statements on one line (colon)
E704: multiple statements on one line (def)

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9032 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Exceptions for sets of empty class definitions
and other cases where it improves comprehension.

flake8 rules
E502: the backslash is redundant between brackets
E701: multiple statements on one line (colon)
E704: multiple statements on one line (def)

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9032 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid too long lines.</title>
<updated>2022-03-05T23:28:32+00:00</updated>
<author>
<name>milde</name>
<email>milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-03-05T23:28:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=2b719a700ee3013944c366d5549b6a290c4c28af'/>
<id>2b719a700ee3013944c366d5549b6a290c4c28af</id>
<content type='text'>
flake8 rule E501: line too long (N &gt; 79 characters)

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9030 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
flake8 rule E501: line too long (N &gt; 79 characters)

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9030 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove excess blank lines.</title>
<updated>2022-03-04T15:55:47+00:00</updated>
<author>
<name>milde</name>
<email>milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-03-04T15:55:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=a23dd51777ed41b80dad9a6af40c50da557a9a40'/>
<id>a23dd51777ed41b80dad9a6af40c50da557a9a40</id>
<content type='text'>
flakei rule E303: too many blank lines (N)

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9025 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
flakei rule E303: too many blank lines (N)

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9025 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix (some) missing blank lines</title>
<updated>2022-03-04T15:55:26+00:00</updated>
<author>
<name>milde</name>
<email>milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-03-04T15:55:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=49743ad48e6d33fa55b92b94dfc1240ea2adf40e'/>
<id>49743ad48e6d33fa55b92b94dfc1240ea2adf40e</id>
<content type='text'>
flake8 rules
E301: expected 1 blank line, found 0
E306: expected 1 blank line before a nested definition, found 0

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9024 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
flake8 rules
E301: expected 1 blank line, found 0
E306: expected 1 blank line before a nested definition, found 0

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9024 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure comments start with '# '</title>
<updated>2022-03-04T15:54:56+00:00</updated>
<author>
<name>milde</name>
<email>milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-03-04T15:54:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=9ccf66efe1117504562863b3713e8c3654713de1'/>
<id>9ccf66efe1117504562863b3713e8c3654713de1</id>
<content type='text'>
flake rules
E262: inline comment should start with '# '
E265: block comment should start with '# '
E266: too many leading '#' for block comment

Exception for latex2e (legacy convention to mark disabled code with ##).

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9022 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
flake rules
E262: inline comment should start with '# '
E265: block comment should start with '# '
E266: too many leading '#' for block comment

Exception for latex2e (legacy convention to mark disabled code with ##).

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9022 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure at least two spaces before inline comment.</title>
<updated>2022-03-04T15:54:22+00:00</updated>
<author>
<name>milde</name>
<email>milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-03-04T15:54:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=703d5ddbc3b7a805e82b4b80d01c8964a50d8a0a'/>
<id>703d5ddbc3b7a805e82b4b80d01c8964a50d8a0a</id>
<content type='text'>
flake 8 rule E261

Exceptions for modules sheduled for removal or with
3rd-party origin and for data collections.

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9021 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
flake 8 rule E261

Exceptions for modules sheduled for removal or with
3rd-party origin and for data collections.

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9021 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
</feed>
