File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ Table of contents:
1010* [ How to capture Audio and Video in HTML5?] ( #how-to-capture-audio-and-video-in-html5 )
1111* [ Touch and multi-touch support] ( #touch-and-multi-touch-support )
1212* [ Black or white browser screen] ( #black-or-white-browser-screen )
13- * [ Python crashes with "Segmentation fault" - how to debug?] ( #python-crashes-with-segmentation-fault-how-to-debug )
13+ * [ How to enable debug information in examples?] ( #how-to-enable-debug-information-in-examples )
14+ * [ Python crashes with "Segmentation fault" - how to debug?] ( #python-crashes-with-segmentation-fault---how-to-debug )
1415* [ Windows XP support] ( #windows-xp-support )
1516* [ Mac 32-bit support] ( #mac-32-bit-support )
1617* [ Security] ( #security )
Original file line number Diff line number Diff line change @@ -160,10 +160,12 @@ def parse_headings(raw_contents, file_):
160160def headinghash (title ):
161161 """Get a link hash for a heading H1,H2,H3."""
162162 hash_ = title .lower ()
163+ hash_ = hash_ .replace (" - " , "specialcase1" )
163164 hash_ = re .sub (r"[^a-z0-9_\- ]+" , r"" , hash_ )
164165 hash_ = hash_ .replace (" " , "-" )
165166 hash_ = re .sub (r"[-]+" , r"-" , hash_ )
166167 hash_ = re .sub (r"-$" , r"" , hash_ )
168+ hash_ = hash_ .replace ("specialcase1" , "---" )
167169 return hash_
168170
169171
You can’t perform that action at this time.
0 commit comments