Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit e127e17b49429e344952bfe7e44d909388a06f19 1 parent 1d7fa75
@spookylukey spookylukey authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  docs/_ext/djangodocs.py
View
1  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?

0 comments on commit e127e17

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