summaryrefslogtreecommitdiff
path: root/docs/_ext
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2011-05-14 02:58:58 +0000
committerLuke Plant <L.Plant.98@cantab.net>2011-05-14 02:58:58 +0000
commite127e17b49429e344952bfe7e44d909388a06f19 (patch)
tree4a83a62e4d0dbff3ab54fa125fec6b74a1adc8fe /docs/_ext
parent1d7fa75c97f0a00de22c25ddfded1ad3e64b5ede (diff)
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
Diffstat (limited to 'docs/_ext')
-rw-r--r--docs/_ext/djangodocs.py1
1 files changed, 1 insertions, 0 deletions
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'))
# <big>? Really?