diff -r a044aefea54a docs/_ext/djangodocs.py
a
|
b
|
|
108 | 108 | node['ids'] = ['s-' + i for i in old_ids] |
109 | 109 | sphinx.htmlwriter.SmartyPantsHTMLTranslator.visit_section(self, node) |
110 | 110 | node['ids'] = old_ids |
| 111 | |
| 112 | def visit_literal_block(self, node): |
| 113 | self.no_smarty += 1 |
| 114 | sphinx.htmlwriter.SmartyPantsHTMLTranslator.visit_literal_block(self, node) |
| 115 | |
| 116 | def depart_literal_block(self, node): |
| 117 | sphinx.htmlwriter.SmartyPantsHTMLTranslator.depart_literal_block(self, node) |
| 118 | self.no_smarty -= 1 |
| 119 | |
111 | 120 | |
112 | 121 | def parse_django_admin_node(env, sig, signode): |
113 | 122 | command = sig.split(' ')[0] |