Create a trivial asciidoc document, say test.txt, with these contents: = Document Header This is a trivial AsciiDoc document. Then run "asciidoc test.txt" in Rawhide. You will see: <unknown>:1: SyntaxWarning: invalid escape sequence '\S' I have tracked the issue down to asciidoc/asciidoc.py, line 2911: self.separator = ast.literal_eval('"' + self.separator + '"') The issue is that self.separator can be an escape sequence, so the code should include an 'r' to ask for evaluation of a raw string; i.e., self.separator = ast.literal_eval('r"' + self.separator + '"') The '\S' in question comes from asciidoc's own configuration files, by the way. Reproducible: Always Steps to Reproduce: 1. See above 2. 3. Actual Results: Warning about an invalid escape sequence while asciidoc reads its configuration files. Expected Results: No warnings.
Upstream PR: https://github.com/asciidoc-py/asciidoc-py/pull/267
Fixed in Rawhide. Build https://koji.fedoraproject.org/koji/taskinfo?taskID=103157275