Skip to content

Commit

Permalink
[offline-renderer] handle extraneous </dd>
Browse files Browse the repository at this point in the history
that was causing the ptpedia build to fail

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information
hxw committed Jun 19, 2012
1 parent eeb448a commit 606a70f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions host-tools/offline-renderer/ArticleRenderer.py
Expand Up @@ -1114,11 +1114,17 @@ def handle_endtag(self, tag):
self.li_inside[self.level] = False

elif tag == 'dd':
self.flush_buffer()
esc_code0(LIST_MARGIN_TOP)
if self.li_inside[self.level]:
self.li_inside[self.level] = False
self.list_decrease_indent()
if 0 == self.level:
if warnings or True:
(line, column) = self.getpos()
PrintLog.message(u'Warning: stray </{0:s}> @[L{1:d}/C{2:d}] in article[{3:d}]: {4:s}'
.format(tag, line, column, article_count + 1, g_this_article_title))
else:
self.flush_buffer()
esc_code0(LIST_MARGIN_TOP)
if self.li_inside[self.level]:
self.li_inside[self.level] = False
self.list_decrease_indent()

elif tag == 'dt':
self.flush_buffer()
Expand Down

0 comments on commit 606a70f

Please sign in to comment.