mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/pgarst/calibre
This commit is contained in:
commit
9418134ee8
@ -26,7 +26,12 @@ class Field(object):
|
|||||||
if not raw:
|
if not raw:
|
||||||
return
|
return
|
||||||
if self.name is None:
|
if self.name is None:
|
||||||
self.name, raw = raw.strip().partition(' ')[0::2]
|
# There are cases where partial index entries end with
|
||||||
|
# a significant space, along the lines of
|
||||||
|
# <>Summary <> ... <>Hearing<>.
|
||||||
|
# No known examples of starting with a space yet.
|
||||||
|
# self.name, raw = raw.strip().partition(' ')[0::2]
|
||||||
|
self.name, raw = raw.lstrip().partition(' ')[0::2]
|
||||||
self.buf.append(raw)
|
self.buf.append(raw)
|
||||||
|
|
||||||
def finalize(self):
|
def finalize(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user