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,8 +503,9 @@ class SmartyPantsHTMLTranslator(HTMLTranslator):
def visit_literal_block(self, node): def visit_literal_block(self, node):
self.no_smarty += 1 self.no_smarty += 1
try:
def depart_literal_block(self, node): HTMLTranslator.visit_literal_block(self, node)
finally:
self.no_smarty -= 1 self.no_smarty -= 1
def visit_literal_emphasis(self, node): def visit_literal_emphasis(self, node):