File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 12
12
def Main ():
13
13
data = open (sys .argv [1 ]).read ()
14
14
15
- # Make bikeshed happy
16
- # Apparently it can't handle empty line before DOCTYPE comment
17
- data = data .replace ('\n <!DOCTYPE' , '<!DOCTYPE' )
18
- # Ensure newline before <pre>
19
- data = data .replace ('<pre>' , '\n <pre>' )
15
+ # Clean up the input for Bikeshed
20
16
21
17
# Don't add more than 3 levels to TOC.
22
18
data = data .replace ('<h5>' , '<h5 class="no-toc">' )
@@ -42,18 +38,6 @@ def Main():
42
38
'<h3>A.' + str (number ) + ' ' + section + '</h3>' )
43
39
number += 1
44
40
45
-
46
- # Drop spurious navigation.
47
- data = data .replace (
48
- """
49
- <div class="related" role="navigation" aria-label="related navigation">
50
- <h3>Navigation</h3>
51
- <ul>
52
- <li class="nav-item nav-item-0"><a href="#">WebAssembly 1.1</a> »</li>
53
- <li class="nav-item nav-item-this"><a href="">WebAssembly 1.1</a></li>
54
- </ul>
55
- </div> """ , '' )
56
-
57
41
# Use bikeshed biblio references for unicode and IEEE754
58
42
data = data .replace (
59
43
"""<a class="reference external" href="https://www.unicode.org/versions/latest/">Unicode</a>""" ,
You can’t perform that action at this time.
0 commit comments