Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Jan 26, 2025
1 parent f172c67 commit 4de8ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calibre/ebooks/txt/textileml.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def check_escaping(text, tests):
# blank paragraph
text = text.replace('\n\xa0', '\np. ')
# blank paragraph
text = re.sub(r'\np[<>=]{1,2}?\\. \xa0', r'\np. ', text)
text = re.sub(r'\np[<>=]{1,2}?\. \xa0', r'\np. ', text)
text = re.sub(r'(^|\n)(p.*\. ?\n)(p.*\.)', r'\1\3', text)
text = re.sub(r'\n(p\. \n)(p.*\.|h.*\.)', r'\n\2', text)
# sort out spaces in tables
Expand Down

0 comments on commit 4de8ffb

Please sign in to comment.