diff options
author | David Robillard <d@drobilla.net> | 2021-01-06 20:43:02 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-06 20:49:53 +0100 |
commit | 69308321d6437e6ab38fd525bac9beb9db034b48 (patch) | |
tree | b1e34259c077a0601fe880cb50b4f226451ef4a1 /scripts/dox_to_sphinx.py | |
parent | afc2c166448ba22ac2da3007a03768ef51367c3c (diff) | |
download | serd-69308321d6437e6ab38fd525bac9beb9db034b48.tar.gz serd-69308321d6437e6ab38fd525bac9beb9db034b48.tar.bz2 serd-69308321d6437e6ab38fd525bac9beb9db034b48.zip |
dox_to_sphinx.py: Add support for fancy quotes
Diffstat (limited to 'scripts/dox_to_sphinx.py')
-rwxr-xr-x | scripts/dox_to_sphinx.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/dox_to_sphinx.py b/scripts/dox_to_sphinx.py index c9d401cc..3842586d 100755 --- a/scripts/dox_to_sphinx.py +++ b/scripts/dox_to_sphinx.py @@ -257,6 +257,12 @@ def dox_to_rst(index, lang, node): return " " + markup.strip() + if node.tag == "lsquo": + return "‘" + + if node.tag == "rsquo": + return "’" + if node.tag == "computeroutput": # assert len(node) == 0 FIXME return "``%s``" % node.text |