mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-26 05:06:13 +01:00
SHould have been part of the commit two commits before.
This commit is contained in:
parent
2fa6b14547
commit
c5af71ca01
1 changed files with 2 additions and 3 deletions
|
|
@ -1257,7 +1257,6 @@ def _processSection(self, parent_elem, lines,
|
|||
#
|
||||
|
||||
if inList :
|
||||
|
||||
start, lines = self._linesUntil(lines, (lambda line:
|
||||
RE.regExp['ul'].match(line)
|
||||
or RE.regExp['ol'].match(line)
|
||||
|
|
@ -1303,8 +1302,8 @@ def _processSection(self, parent_elem, lines,
|
|||
for item in list :
|
||||
el.appendChild(item)
|
||||
|
||||
if lines:
|
||||
lines = lines[1:] # skip the first (blank) line
|
||||
if lines and not lines[0].strip():
|
||||
lines = lines[1:] # skip the first (blank) line
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue