diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2011-05-14 02:58:58 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-07-18 13:03:38 +0000 |
| commit | 8dc1b2e03f2402911dd68172ecc0b0bb22fd3e18 (patch) | |
| tree | cae205055d6bbc8cf62f6490d3bbea51985536bf | |
| parent | adea5a3880c6f211a1b9e03255bb88e43f36a08c (diff) | |
[1.3.x] 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
Backport of e127e17b49 from master
| -rw-r--r-- | docs/_ext/djangodocs.py | 1 |
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? |
