Commit 8af0b1af authored by Tim Graham's avatar Tim Graham
Browse files

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

Backport of a3a59a31 from master
parent ed6ec47f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -105,9 +105,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('(')