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,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
|
||||
|
Loading…
Reference in New Issue
Block a user