mirror of
https://github.com/django/django.git
synced 2025-03-12 18:30:48 +00:00
[1.6.x] Added a bugfix in docutils 0.11 -- docs will now build properly.
Backport of a3a59a3197 from master
This commit is contained in:
parent
bc617fd42c
commit
d32471f8c2
@ -92,9 +92,15 @@ class DjangoHTMLTranslator(SmartyPantsHTMLTranslator):
|
|||||||
|
|
||||||
# Don't use border=1, which docutils does by default.
|
# Don't use border=1, which docutils does by default.
|
||||||
def visit_table(self, node):
|
def visit_table(self, node):
|
||||||
|
self.context.append(self.compact_p)
|
||||||
|
self.compact_p = True
|
||||||
self._table_row_index = 0 # Needed by Sphinx
|
self._table_row_index = 0 # Needed by Sphinx
|
||||||
self.body.append(self.starttag(node, 'table', CLASS='docutils'))
|
self.body.append(self.starttag(node, 'table', CLASS='docutils'))
|
||||||
|
|
||||||
|
def depart_table(self, node):
|
||||||
|
self.compact_p = self.context.pop()
|
||||||
|
self.body.append('</table>\n')
|
||||||
|
|
||||||
# <big>? Really?
|
# <big>? Really?
|
||||||
def visit_desc_parameterlist(self, node):
|
def visit_desc_parameterlist(self, node):
|
||||||
self.body.append('(')
|
self.body.append('(')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user