cppreference-doc
cppreference-doc copied to clipboard
Fix handling of slash-escaped characters in the page title
Implements the fix described in #31.
Issue: operator""sv
(and many others) contain quote characters which appear as operator\"\"sv
in HTML, but the regex in build_link_map.py
stops at the first (escaped) quote which results in broken links in output/link-map.xml
. Instead, the regex is adjusted to eat all slash-escaped characters until the real quote. Then the escaped quotes are converted to plain quotes and correctly appear as operator""sv
in the final output/link-map.xml
(which eventually works in devhelp
).
Playground for regex: https://regex101.com/r/qCPJhi/1
Sorry about not responding to your PR, I haven't been very actively working on this. I'll take a look whenever I get to working on issues.
No problem, it's rather minor :-)