mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
TXT Output: preserve spaces, handle tab character correct. 	 is reduced to a single space by many renderers.
This commit is contained in:
parent
c2b3c445e1
commit
ef8408869c
@ -77,7 +77,7 @@ def separate_paragraphs_print_formatted(txt):
|
|||||||
|
|
||||||
def preserve_spaces(txt):
|
def preserve_spaces(txt):
|
||||||
txt = txt.replace(' ', ' ')
|
txt = txt.replace(' ', ' ')
|
||||||
txt = txt.replace('\t', '	')
|
txt = txt.replace('\t', ' ')
|
||||||
return txt
|
return txt
|
||||||
|
|
||||||
def opf_writer(path, opf_name, manifest, spine, mi):
|
def opf_writer(path, opf_name, manifest, spine, mi):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user