From 69308321d6437e6ab38fd525bac9beb9db034b48 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 6 Jan 2021 20:43:02 +0100 Subject: dox_to_sphinx.py: Add support for fancy quotes --- scripts/dox_to_sphinx.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.1