mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Also recognize para breaks when the involved characters are quotes or parentheses
This commit is contained in:
parent
353dd847d1
commit
25b3d5b054
@ -36,7 +36,7 @@ def pretty_google_books_comments(raw):
|
|||||||
# Paragraphs in the comments are removed but whatever software googl uses
|
# Paragraphs in the comments are removed but whatever software googl uses
|
||||||
# to do this does not insert a space so we often find the pattern
|
# to do this does not insert a space so we often find the pattern
|
||||||
# word.Capital in the comments which can be used to find paragraph markers.
|
# word.Capital in the comments which can be used to find paragraph markers.
|
||||||
raw = re.sub(r'([a-z])\.([A-Z])', '\\1.\n\n\\2', raw)
|
raw = re.sub(r'([a-z)"”])\.([A-Z("“])', '\\1.\n\n\\2', raw)
|
||||||
return raw
|
return raw
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user