aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dox_to_sphinx.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-04-12 14:58:48 -0400
committerDavid Robillard <d@drobilla.net>2021-04-12 14:58:48 -0400
commit73b5eedcc99e5a3ebc682f17f8de4ce0baeeeb6e (patch)
tree1dd1aef4eb70f45146c61dec6dd05f04cf9cfc1b /scripts/dox_to_sphinx.py
parenta2ed0f1da672bbdeb85944b15df3bf2558f29ac7 (diff)
downloadserd-73b5eedcc99e5a3ebc682f17f8de4ce0baeeeb6e.tar.gz
serd-73b5eedcc99e5a3ebc682f17f8de4ce0baeeeb6e.tar.bz2
serd-73b5eedcc99e5a3ebc682f17f8de4ce0baeeeb6e.zip
dox_to_sphinx.py: Support computeroutput nodes with children
Diffstat (limited to 'scripts/dox_to_sphinx.py')
-rwxr-xr-xscripts/dox_to_sphinx.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/dox_to_sphinx.py b/scripts/dox_to_sphinx.py
index b88a484f..5ecbaa5c 100755
--- a/scripts/dox_to_sphinx.py
+++ b/scripts/dox_to_sphinx.py
@@ -264,8 +264,7 @@ def dox_to_rst(index, lang, node):
return "’"
if node.tag == "computeroutput":
- assert len(node) == 0
- return "``%s``" % node.text
+ return "``%s``" % plain_text(node)
if node.tag == "itemizedlist":
markup = ""