Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

Backport of a3a59a3 from master
  • Loading branch information...
commit f2969c7e02f7b300d410df1154dd585a5082c433 1 parent 72fb37f
Tim Graham authored July 31, 2013

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  docs/_ext/djangodocs.py
6  docs/_ext/djangodocs.py
@@ -90,9 +90,15 @@ class DjangoHTMLTranslator(SmartyPantsHTMLTranslator):
90 90
 
91 91
     # Don't use border=1, which docutils does by default.
92 92
     def visit_table(self, node):
  93
+        self.context.append(self.compact_p)
  94
+        self.compact_p = True
93 95
         self._table_row_index = 0 # Needed by Sphinx
94 96
         self.body.append(self.starttag(node, 'table', CLASS='docutils'))
95 97
 
  98
+    def depart_table(self, node):
  99
+        self.compact_p = self.context.pop()
  100
+        self.body.append('</table>\n')
  101
+
96 102
     # <big>? Really?
97 103
     def visit_desc_parameterlist(self, node):
98 104
         self.body.append('(')

0 notes on commit f2969c7

Please sign in to comment.
Something went wrong with that request. Please try again.