From: Vladimír Vondruš Date: Wed, 4 Sep 2019 18:16:53 +0000 (+0200) Subject: documentation/doxygen: don't use entity if it fails to be found. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=ee898428aa358e1105d27a1695272b88bf2b31d1;p=blog.git documentation/doxygen: don't use entity if it fails to be found. --- diff --git a/documentation/doxygen.py b/documentation/doxygen.py index fcfb1167..10992f5d 100755 --- a/documentation/doxygen.py +++ b/documentation/doxygen.py @@ -1492,9 +1492,9 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET. 'tm': 'trade'} try: entity = mapping[i.tag] + out.parsed += '&{};'.format(entity) except: logging.warning("{}: ignoring <{}> in desc".format(state.current, i.tag)) - out.parsed += '&{};'.format(entity) # Now we can reset previous_section to None, nobody needs it anymore. # Of course we're resetting it only in case nothing else (such as the