chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d52143
)
doxygen: parse more entities.
author
Vladimír Vondruš
<mosra@centrum.cz>
Thu, 14 Dec 2017 21:40:28 +0000
(22:40 +0100)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Thu, 14 Dec 2017 21:40:28 +0000
(22:40 +0100)
doxygen/dox2html5.py
patch
|
blob
|
history
diff --git
a/doxygen/dox2html5.py
b/doxygen/dox2html5.py
index 5889c6cffbc18ea634cbd382c770e8634f8a7b2a..378d7dff9777e2ef6b249a16799c31f3c57ed22c 100755
(executable)
--- 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 += '<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 += '–'
- 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