Skip to content

Commit

Permalink
Fixed our Sphinx extension to work with latest Sphinx
Browse files Browse the repository at this point in the history
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
spookylukey committed May 14, 2011
1 parent 1d7fa75 commit e127e17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/_ext/djangodocs.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class DjangoHTMLTranslator(SmartyPantsHTMLTranslator):


# Don't use border=1, which docutils does by default. # Don't use border=1, which docutils does by default.
def visit_table(self, node): def visit_table(self, node):
self._table_row_index = 0 # Needed by Sphinx
self.body.append(self.starttag(node, 'table', CLASS='docutils')) self.body.append(self.starttag(node, 'table', CLASS='docutils'))


# <big>? Really? # <big>? Really?
Expand Down

0 comments on commit e127e17

Please sign in to comment.