mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
SHould have been part of the commit two commits before.
This commit is contained in:
parent
2fa6b14547
commit
c5af71ca01
@ -1257,7 +1257,6 @@ class Markdown:
|
|||||||
#
|
#
|
||||||
|
|
||||||
if inList :
|
if inList :
|
||||||
|
|
||||||
start, lines = self._linesUntil(lines, (lambda line:
|
start, lines = self._linesUntil(lines, (lambda line:
|
||||||
RE.regExp['ul'].match(line)
|
RE.regExp['ul'].match(line)
|
||||||
or RE.regExp['ol'].match(line)
|
or RE.regExp['ol'].match(line)
|
||||||
@ -1303,8 +1302,8 @@ class Markdown:
|
|||||||
for item in list :
|
for item in list :
|
||||||
el.appendChild(item)
|
el.appendChild(item)
|
||||||
|
|
||||||
if lines:
|
if lines and not lines[0].strip():
|
||||||
lines = lines[1:] # skip the first (blank) line
|
lines = lines[1:] # skip the first (blank) line
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user