1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-03-13 21:25:54 +01:00

Added FB2 format.

This commit is contained in:
2020-04-13 12:11:48 +02:00
parent 860044904d
commit fa3cf5c178
5 changed files with 479 additions and 31 deletions

View File

@@ -89,7 +89,7 @@ class FB2Input(InputFormatPlugin):
log.debug('Converting XML to HTML...')
with open(pkg_resources.resource_filename('ebook_converter',
'data/fb2.xsl')) as f:
ss = f.read().decode()
ss = f.read()
ss = ss.replace("__FB_NS__", fb_ns)
if options.no_inline_fb2_toc:
log('Disabling generation of inline FB2 TOC')