mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
fixed comments
This commit is contained in:
parent
5854f5308e
commit
f88045c162
@ -102,10 +102,9 @@ def detect_paragraph_type(txt):
|
|||||||
single: Each line is a paragraph.
|
single: Each line is a paragraph.
|
||||||
print: Each paragraph starts with a 2+ spaces or a tab
|
print: Each paragraph starts with a 2+ spaces or a tab
|
||||||
and ends when a new paragraph is reached.
|
and ends when a new paragraph is reached.
|
||||||
markdown: Markdown formatting is in the document.
|
|
||||||
unformatted: most lines have hard line breaks, few/no spaces or indents
|
unformatted: most lines have hard line breaks, few/no spaces or indents
|
||||||
|
|
||||||
returns block, single, print, markdown, unformatted
|
returns block, single, print, unformatted
|
||||||
'''
|
'''
|
||||||
txt = txt.replace('\r\n', '\n')
|
txt = txt.replace('\r\n', '\n')
|
||||||
txt = txt.replace('\r', '\n')
|
txt = txt.replace('\r', '\n')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user