Permalink
Browse files

[1.6.x] Added a bugfix in docutils 0.11 -- docs will now build properly.

Backport of a3a59a3 from master
  • Loading branch information...
1 parent bc617fd commit d32471f8c276f19d69af6ba2531e42dac1e8d3e5 @timgraham timgraham committed Jul 31, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 docs/_ext/djangodocs.py
View
6 docs/_ext/djangodocs.py
@@ -92,9 +92,15 @@ class DjangoHTMLTranslator(SmartyPantsHTMLTranslator):
# Don't use border=1, which docutils does by default.
def visit_table(self, node):
+ self.context.append(self.compact_p)
+ self.compact_p = True
self._table_row_index = 0 # Needed by Sphinx
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?
def visit_desc_parameterlist(self, node):
self.body.append('(')

0 comments on commit d32471f

Please sign in to comment.