-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix usage of reST syntax in prefix parameter of meta (#1046)
The usage of the `prefix` parameter of the `meta` layout function (as per the docs) does not work. There are two problems with this: 1. The documentation for `meta` does not mention that backslashes need to be escaped and shows unescaped backslashes instead. The docs for `meta_all` do not make this mistake. 2. [Since version 0.16](https://docutils.sourceforge.io/HISTORY.html#release-0-16-2020-01-16), docutils inserts null-characters when parsing escaped backslashes, which in turn is not accepted by [`ast.parse`](https://docs.python.org/3/library/ast.html#ast.parse). The solution is described in the [release notes for docutils 0.16](https://docutils.sourceforge.io/HISTORY.html#release-0-16-2020-01-16): Using `node.astext()` instead of `str(node)`
- Loading branch information
Showing
5 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,5 @@ Duodu Randy <[email protected]> | |
Christian Wappler <[email protected]> | ||
|
||
Chris Sewell <[email protected]> | ||
|
||
Simon Leiner <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters