Fix for commit 41cb9d297064.

This commit is contained in:
Georg Brandl 2009-12-28 19:39:15 +01:00
parent 198013be93
commit 654bc580d0

View File

@ -503,9 +503,10 @@ class SmartyPantsHTMLTranslator(HTMLTranslator):
def visit_literal_block(self, node):
self.no_smarty += 1
def depart_literal_block(self, node):
self.no_smarty -= 1
try:
HTMLTranslator.visit_literal_block(self, node)
finally:
self.no_smarty -= 1
def visit_literal_emphasis(self, node):
self.no_smarty += 1