From e127e17b49429e344952bfe7e44d909388a06f19 Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Sat, 14 May 2011 02:58:58 +0000 Subject: [PATCH] Fixed our Sphinx extension to work with latest Sphinx This is pretty hacky, but there doesn't seem to be a nice way to fix it, since we can't call the base method - we are deliberately overriding it in order to not call the base method, which adds an unwanted 'border=1' to the HTML. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16223 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/_ext/djangodocs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index 7710786d0f..eec0983307 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -127,6 +127,7 @@ class DjangoHTMLTranslator(SmartyPantsHTMLTranslator): # Don't use border=1, which docutils does by default. def visit_table(self, node): + self._table_row_index = 0 # Needed by Sphinx self.body.append(self.starttag(node, 'table', CLASS='docutils')) # ? Really?