Docs: correctly slugify escaped chars
md_browser wasn't correctly slugifying escaped characters in header names. Gitiles shows the literal character (ex. "\_" shows as "_"), but md_browser previously slugified to "_95_" as an artifact of the python library encoding escaped chars as "\x02 (ASCII code for escaped char) \x03", where \x02 & \x03 are "start of text" and "end of text" respectively. This adds a step to decode decimal codes in-between \x02 & \x03. Bug: 974025 Test: tools/md_browser/md_browser.py android_build_instructions.md (click "Figuring out target_cpu") Test: I also tested this by comparing against https://crrev.com/c/1665854 Change-Id: I561be6f0742d11ac5188e5680573ce112b8883fc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1658676Reviewed-by:Dirk Pranke <dpranke@chromium.org> Commit-Queue: Nate Fischer <ntfschr@chromium.org> Cr-Commit-Position: refs/heads/master@{#670287}
Showing
Please register or sign in to comment