From 73b5eedcc99e5a3ebc682f17f8de4ce0baeeeb6e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 12 Apr 2021 14:58:48 -0400 Subject: dox_to_sphinx.py: Support computeroutput nodes with children --- scripts/dox_to_sphinx.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts') 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 = "" -- cgit v1.2.1