mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix for commit 41cb9d297064.
This commit is contained in:
parent
198013be93
commit
654bc580d0
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user