aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dox_to_sphinx.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-06 20:43:02 +0100
committerDavid Robillard <d@drobilla.net>2021-01-06 20:49:53 +0100
commit69308321d6437e6ab38fd525bac9beb9db034b48 (patch)
treeb1e34259c077a0601fe880cb50b4f226451ef4a1 /scripts/dox_to_sphinx.py
parentafc2c166448ba22ac2da3007a03768ef51367c3c (diff)
downloadserd-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-xscripts/dox_to_sphinx.py6
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