asciidoc: Add fix for Python 3.12

This commit is contained in:
Xi Ruoyao 2023-11-03 15:14:51 +08:00
parent 51b3a00919
commit 9ef2bd487f
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -83,6 +83,16 @@
<sect3 role="installation">
<title>Installation of Asciidoc</title>
<!-- https://github.com/asciidoc-py/asciidoc-py/pull/267 -->
<para>
Fix an issue causing thouands lines of
<quote><computeroutput>invalid escape sequence</computeroutput></quote>
warnings outputted when generating the documentation of some
packages with Asciidoc and Python 3.12 or later:
</para>
<screen><userinput>sed "/self.separator =/s/'/r'/" -i asciidoc/asciidoc.py</userinput></screen>
<para>
Build the module:
</para>