chiark / gitweb /
doxygen: parse more entities.
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 14 Dec 2017 21:40:28 +0000 (22:40 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Thu, 14 Dec 2017 21:40:28 +0000 (22:40 +0100)
doxygen/dox2html5.py

index 5889c6cffbc18ea634cbd382c770e8634f8a7b2a..378d7dff9777e2ef6b249a16799c31f3c57ed22c 100755 (executable)
@@ -759,8 +759,8 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET.
             out.parsed += '<span class="{}">{}</span>'.format(i.attrib['{http://mcss.mosra.cz/doxygen/}class'], parse_inline_desc(state, i).strip())
 
         # WHAT THE HELL WHY IS THIS NOT AN XML ENTITY
-        elif i.tag == 'ndash': out.parsed += '&ndash;'
-        elif i.tag == 'mdash': out.parsed += '&mdash;'
+        elif i.tag in ['mdash', 'ndash', 'laquo', 'raquo']:
+            out.parsed += '&{};'.format(i.tag)
 
         # Something new :O
         else: # pragma: no cover