From: Robert BÅ‚aut Date: Tue, 1 Apr 2014 11:03:36 +0000 (+0200) Subject: [epub] pep8 tabs removed X-Git-Tag: 1.7~99^2~1 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/a10487d4ba6917735432fcbda98faf8fd35a77e3?ds=inline;hp=--cc [epub] pep8 tabs removed --- a10487d4ba6917735432fcbda98faf8fd35a77e3 diff --git a/librarian/epub.py b/librarian/epub.py index e52e524..e8b972a 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -427,7 +427,7 @@ def transform(wldoc, verbose=False, chars = used_chars(html_tree.getroot()) zip.writestr('OPS/title.html', etree.tostring(html_tree, pretty_print = True, - xml_declaration = True, + xml_declaration = True, encoding = "utf-8", doctype='')) @@ -442,7 +442,7 @@ def transform(wldoc, verbose=False, html_tree = xslt(wldoc.edoc, get_resource('epub/xsltChunkTitle.xsl')) chars = used_chars(html_tree.getroot()) html_string = etree.tostring(html_tree, - pretty_print = True, + pretty_print = True, xml_declaration = True, encoding = "utf-8", doctype='')) if bound_cover.uses_dc_cover: @@ -594,9 +594,9 @@ def transform(wldoc, verbose=False, chars = chars.union(used_chars(html_tree.getroot())) zip.writestr('OPS/annotations.html', etree.tostring( html_tree, pretty_print = True, - xml_declaration = True, - encoding = "utf-8", - doctype='')) toc.add("Wesprzyj Wolne Lektury", "support.html") @@ -617,9 +617,9 @@ def transform(wldoc, verbose=False, chars.update(used_chars(html_tree.getroot())) zip.writestr('OPS/last.html', etree.tostring( html_tree, pretty_print = True, - xml_declaration = True, - encoding = "utf-8", - doctype='')) if not flags or not 'without-fonts' in flags: