chiark / gitweb /
documentation/doxygen: don't use entity if it fails to be found.
authorVladimír Vondruš <mosra@centrum.cz>
Wed, 4 Sep 2019 18:16:53 +0000 (20:16 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Wed, 4 Sep 2019 18:16:53 +0000 (20:16 +0200)
documentation/doxygen.py

index fcfb11676a177959e6130d802b3cd5a7f41ba746..10992f5df3e15385cf277b7ca250026e4991469e 100755 (executable)
@@ -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