Skip to content

Commit e1d3311

Browse files
mikucionisaauPeterFeicht
authored andcommitted
Doxygen: Fix handling of slash-escaped characters in the page title
Fixes #31.
1 parent 4573224 commit e1d3311

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build_link_map.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ def build_link_map(directory):
4848
continue
4949
text = m.group(1)
5050
text = re.sub(r'\s*', '', text)
51-
m = re.search('"wgPageName":"([^"]*)"', text)
51+
m = re.search(r'"wgPageName":"((?:\\"|[^"\\])+)"', text)
5252
if not m:
5353
continue
5454

5555
title = m.group(1)
56+
# unescape quotes in page title
57+
title = title.replace(r'\"', r'"')
5658

5759
target = os.path.relpath(os.path.abspath(fn),
5860
os.path.abspath(directory))

0 commit comments

Comments
 (0)