diff --git a/fb2mobi.py b/fb2mobi.py index 67a374d..e1bb1e5 100755 --- a/fb2mobi.py +++ b/fb2mobi.py @@ -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) из временного в выходной каталог diff --git a/spaces.xsl b/spaces.xsl index 273cb10..f89c937 100644 --- a/spaces.xsl +++ b/spaces.xsl @@ -20,7 +20,7 @@ - –  + —