Fix #171. version 0.3.103

This commit is contained in:
Kovid Goyal 2007-08-23 06:31:30 +00:00
parent be2304bd91
commit c0a1e17c20
2 changed files with 6 additions and 2 deletions

View File

@ -13,7 +13,7 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
''' E-book management software'''
__version__ = "0.3.102"
__version__ = "0.3.103"
__docformat__ = "epytext"
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
__appname__ = 'libprs500'

View File

@ -529,7 +529,10 @@ class HTMLConverter(object):
elif isinstance(c, NavigableString):
self.add_text(c, pcss, ppcss)
if not self.in_table:
ptag.extract()
try:
ptag.extract()
except AttributeError:
print ptag, type(ptag)
def get_alignment(self, css):
align = 'head'
@ -1216,6 +1219,7 @@ class HTMLConverter(object):
if c.startswith('\n'):
c = c[1:]
tag.contents[0] = NavigableString(c)
tag.contents[0].setup(tag)
self.process_children(tag, tag_css, tag_pseudo_css)
self.end_current_block()
elif tagname in ['ul', 'ol', 'dl']: