This commit is contained in:
Kovid Goyal 2016-05-01 20:18:09 +05:30
parent 6b5ecdc7e1
commit 2590501edb

View File

@ -119,7 +119,7 @@ def compile_srv():
base = P('content-server', allow_user_override=False)
fname = os.path.join(rapydscript_dir, 'srv.pyj')
with lopen(fname, 'rb') as f:
js = compile_pyj(f.read(), fname).replace('__RENDER_VERSION__', rv).replace('__MATHJAX_VERSION__', mathjax_version).encode('utf-8')
js = compile_pyj(f.read(), fname).replace('__RENDER_VERSION__', rv, 1).replace('__MATHJAX_VERSION__', mathjax_version, 1).encode('utf-8')
with lopen(os.path.join(base, 'index.html'), 'rb') as f:
html = f.read().replace(b'RESET_STYLES', reset, 1).replace(b'ICONS', icons, 1).replace(b'MAIN_JS', js, 1)
with lopen(os.path.join(base, 'index-generated.html'), 'wb') as f: