mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
TXT Input: Fix a regression in 5.39 that caused the option to remove indents also removing blank lines. Fixes #1973591 [TXT input Paragraph Style: single function failed](https://bugs.launchpad.net/calibre/+bug/1973591)
This commit is contained in:
parent
463a0b459f
commit
79006c3460
@ -220,7 +220,7 @@ def remove_indents(txt):
|
||||
'''
|
||||
Remove whitespace at the beginning of each line.
|
||||
'''
|
||||
return re.sub(r'^\s+', '', txt, flags=re.MULTILINE)
|
||||
return re.sub(r'^[\r\t\f\v ]+', r'', txt, flags=re.MULTILINE)
|
||||
|
||||
|
||||
def opf_writer(path, opf_name, manifest, spine, mi):
|
||||
|
Loading…
x
Reference in New Issue
Block a user