mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-30 01:15:59 +01:00
TXT Input: Add _ to set of characters that can make up a hard scene break.
This commit is contained in:
parent
04b80eb9ee
commit
ffaed91cdc
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ def sep_break(line):
|
|||
return '\n%s\n' % line
|
||||
else:
|
||||
return line
|
||||
txt = re.sub(u'(?miu)^[ \t-=~\/]+$', lambda mo: sep_break(mo.group()), txt)
|
||||
txt = re.sub(u'(?miu)^[ \t-=~\/_]+$', lambda mo: sep_break(mo.group()), txt)
|
||||
return txt
|
||||
|
||||
def block_to_single_line(txt):
|
||||
|
|
|
|||
Loading…
Reference in a new issue