mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:24:20 +02:00
MOBI Output: Do not collapse whitespace when setting the comments metadata in newly created MOBI files
This commit is contained in:
parent
6a81e30de6
commit
db4416a736
1 changed files with 3 additions and 1 deletions
|
|
@ -494,7 +494,9 @@ def build_exth(self, mobi_doctype): # EXTH Header {{{
|
|||
creators = [normalize(unicode(c)) for c in items]
|
||||
items = ['; '.join(creators)]
|
||||
for item in items:
|
||||
data = self.COLLAPSE_RE.sub(' ', normalize(unicode(item)))
|
||||
data = normalize(unicode(item))
|
||||
if term != 'description':
|
||||
data = self.COLLAPSE_RE.sub(' ', data)
|
||||
if term == 'identifier':
|
||||
if data.lower().startswith('urn:isbn:'):
|
||||
data = data[9:]
|
||||
|
|
|
|||
Loading…
Reference in a new issue