From 2590501edb401db60fe0cc85e2e3b460a311fbd4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 1 May 2016 20:18:09 +0530 Subject: [PATCH] ... --- src/calibre/utils/rapydscript.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/rapydscript.py b/src/calibre/utils/rapydscript.py index 799dd18006..fe437c4592 100644 --- a/src/calibre/utils/rapydscript.py +++ b/src/calibre/utils/rapydscript.py @@ -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: