From 209adad969d12fb5e8ceab8929577eed5242f409 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 6 Dec 2017 23:47:29 +0100 Subject: [PATCH] doxygen: make the

stripper work with empty content. --- doxygen/dox2html5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doxygen/dox2html5.py b/doxygen/dox2html5.py index 6f594258..126d57bb 100755 --- a/doxygen/dox2html5.py +++ b/doxygen/dox2html5.py @@ -628,7 +628,7 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET. # Strip superfluous

for simple elments (list items, parameter and # return value description, table cells), but only if there is just a # single paragraph - elif (element.tag in ['listitem', 'parameterdescription', 'entry'] or (element.tag == 'simplesect' and element.attrib['kind'] == 'return')) and not has_block_elements and paragraph_count == 1: + elif (element.tag in ['listitem', 'parameterdescription', 'entry'] or (element.tag == 'simplesect' and element.attrib['kind'] == 'return')) and not has_block_elements and paragraph_count == 1 and out.parsed: assert out.parsed.startswith('

') and out.parsed.endswith('

') out.parsed = out.parsed[3:-4] -- 2.30.2