1. Gregg Lind
  2. sphinx

Commits

Georg Brandl  committed a2739df

Fix for commit 41cb9d297064.

  • Participants
  • Parent commits 126fdd8
  • Branches default

Comments (0)

Files changed (1)

File sphinx/writers/html.py

View file
  • Ignore whitespace
 
     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