mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #171. version 0.3.103
This commit is contained in:
parent
be2304bd91
commit
c0a1e17c20
@ -13,7 +13,7 @@
|
|||||||
## with this program; if not, write to the Free Software Foundation, Inc.,
|
## with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
''' E-book management software'''
|
''' E-book management software'''
|
||||||
__version__ = "0.3.102"
|
__version__ = "0.3.103"
|
||||||
__docformat__ = "epytext"
|
__docformat__ = "epytext"
|
||||||
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
||||||
__appname__ = 'libprs500'
|
__appname__ = 'libprs500'
|
||||||
|
@ -529,7 +529,10 @@ class HTMLConverter(object):
|
|||||||
elif isinstance(c, NavigableString):
|
elif isinstance(c, NavigableString):
|
||||||
self.add_text(c, pcss, ppcss)
|
self.add_text(c, pcss, ppcss)
|
||||||
if not self.in_table:
|
if not self.in_table:
|
||||||
|
try:
|
||||||
ptag.extract()
|
ptag.extract()
|
||||||
|
except AttributeError:
|
||||||
|
print ptag, type(ptag)
|
||||||
|
|
||||||
def get_alignment(self, css):
|
def get_alignment(self, css):
|
||||||
align = 'head'
|
align = 'head'
|
||||||
@ -1216,6 +1219,7 @@ class HTMLConverter(object):
|
|||||||
if c.startswith('\n'):
|
if c.startswith('\n'):
|
||||||
c = c[1:]
|
c = c[1:]
|
||||||
tag.contents[0] = NavigableString(c)
|
tag.contents[0] = NavigableString(c)
|
||||||
|
tag.contents[0].setup(tag)
|
||||||
self.process_children(tag, tag_css, tag_pseudo_css)
|
self.process_children(tag, tag_css, tag_pseudo_css)
|
||||||
self.end_current_block()
|
self.end_current_block()
|
||||||
elif tagname in ['ul', 'ol', 'dl']:
|
elif tagname in ['ul', 'ol', 'dl']:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user