Skip to content
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.

Commit

Permalink
Do not access fb2parser when processing epub
Browse files Browse the repository at this point in the history
  • Loading branch information
rupor-github committed Jul 8, 2017
1 parent 68aa290 commit db06292
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fb2mobi.py
Expand Up @@ -278,8 +278,8 @@ def process_file(config, infile, outfile=None):
if os.path.exists(debug_dir):
rm_tmp_files(debug_dir)
shutil.copytree(temp_dir, debug_dir)
# Store fb2 after xslt transformation for debugging
if fb2parser:
if not input_epub:
# Store fb2 after xslt transformation for debugging
fb2parser.write_debug(debug_dir)

# Копируем mobi(azw3) из временного в выходной каталог
Expand Down
2 changes: 1 addition & 1 deletion spaces.xsl
Expand Up @@ -20,7 +20,7 @@
</xsl:template-->

<xsl:template match="fb:p[starts-with(.,'‐') or starts-with(.,'‑') or starts-with(.,'−') or starts-with(.,'–') or starts-with(.,'—') or starts-with(.,'―') or starts-with(.,'…')]">
<rupor:katz_tr>&#8198;</rupor:katz_tr>
<rupor:katz_tr>&#8198;</rupor:katz_tr>
</xsl:template>

</xsl:stylesheet>

0 comments on commit db06292

Please sign in to comment.