mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Removed some extraneous changes
This commit is contained in:
parent
40ef97e9a3
commit
4738dd521c
@ -237,7 +237,7 @@ class OPF(MetaInformation):
|
|||||||
|
|
||||||
def get_title(self):
|
def get_title(self):
|
||||||
title = self.soup.package.metadata.find('dc:title')
|
title = self.soup.package.metadata.find('dc:title')
|
||||||
if title and title.string:
|
if title:
|
||||||
return self.ENTITY_PATTERN.sub(entity_to_unicode, title.string).strip()
|
return self.ENTITY_PATTERN.sub(entity_to_unicode, title.string).strip()
|
||||||
return self.default_title.strip()
|
return self.default_title.strip()
|
||||||
|
|
||||||
|
@ -194,8 +194,6 @@ class MobiReader(object):
|
|||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
self.processed_html = re.sub(r'<div height="0(pt|px|ex|em|%){0,1}"></div>', '', self.processed_html)
|
self.processed_html = re.sub(r'<div height="0(pt|px|ex|em|%){0,1}"></div>', '', self.processed_html)
|
||||||
self.processed_html = re.sub(r'<([^>]*) height="([^"]*)"', r'<\1 style="margin-top: \2"', self.processed_html)
|
|
||||||
self.processed_html = re.sub(r'<([^>]*) width="([^"]*)"', r'<\1 style="text-indent: \2"', self.processed_html)
|
|
||||||
|
|
||||||
def create_opf(self, htmlfile, guide=None):
|
def create_opf(self, htmlfile, guide=None):
|
||||||
mi = self.book_header.exth.mi
|
mi = self.book_header.exth.mi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user