Skip to content

Commit c0aeee7

Browse files
authored
Escape latex newline commands with extra vertical space (WebAssembly#1826)
Fix a sequence that Bikeshed is treating as a macro and rewriting. This is a workaround for WebAssembly#1823
1 parent 535bedf commit c0aeee7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

document/core/util/bikeshed_fixup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ def Main():
8787
r'\1',
8888
data, flags=re.DOTALL)
8989

90+
# Escape some latex sequences that Bikeshed interprets as macros
91+
data = data.replace(r' \\[1ex]', r' \\\[1ex]')
92+
9093
sys.stdout.write(data)
9194

9295
Main()

0 commit comments

Comments
 (0)