mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 11:44:35 +01:00
This commit is contained in:
parent
ba7af95b90
commit
0216bb9bd3
1 changed files with 2 additions and 1 deletions
|
|
@ -161,7 +161,8 @@ def html():
|
|||
"http://www.w3.org/TR/html4/loose.dtd")
|
||||
raw = template.generate(footer=False, toc=toc).render(doctype=dt)
|
||||
raw = re.sub(r'<html[^<>]+>', '<html lang="en">', raw)
|
||||
raw = re.sub(r'<(script|link|style)([^<>])+/>', '<\1 \2></\1>', raw)
|
||||
raw = re.sub(r'<(script|style)([^<>]+)/>', r'<\1 \2></\1>', raw)
|
||||
raw = re.sub(r'<(link|meta)([^<>]+)/>', r'<\1 \2>', raw)
|
||||
open('build'+os.sep+'navtree.html', 'wb').write(raw)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue