mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix formatting of tweak docs
New para lines should not be appended to the preceding blank line with a space
This commit is contained in:
parent
d938936ab6
commit
c2c85534ea
@ -46,7 +46,10 @@ def format_doc(doc):
|
|||||||
default_indent = indent
|
default_indent = indent
|
||||||
current_indent = indent
|
current_indent = indent
|
||||||
if indent == default_indent:
|
if indent == default_indent:
|
||||||
|
if lines and lines[-1]:
|
||||||
lines[-1] += ' ' + line
|
lines[-1] += ' ' + line
|
||||||
|
else:
|
||||||
|
lines.append(line)
|
||||||
else:
|
else:
|
||||||
lines.append(' ' + line.strip())
|
lines.append(' ' + line.strip())
|
||||||
return '\n'.join(lines).lstrip()
|
return '\n'.join(lines).lstrip()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user