From: Vladimír Vondruš Date: Thu, 14 Dec 2017 21:40:28 +0000 (+0100) Subject: doxygen: parse more entities. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=d592db16a0b14ddf9c100b53a1c04e46d95d8873;p=blog.git doxygen: parse more entities. --- diff --git a/doxygen/dox2html5.py b/doxygen/dox2html5.py index 5889c6cf..378d7dff 100755 --- a/doxygen/dox2html5.py +++ b/doxygen/dox2html5.py @@ -759,8 +759,8 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET. out.parsed += '{}'.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 += '–' - elif i.tag == 'mdash': out.parsed += '—' + elif i.tag in ['mdash', 'ndash', 'laquo', 'raquo']: + out.parsed += '&{};'.format(i.tag) # Something new :O else: # pragma: no cover