Author: lukeplant
Date: 2011-05-13 19:58:58 -0700 (Fri, 13 May 2011)
New Revision: 16223

Modified:
   django/trunk/docs/_ext/djangodocs.py
Log:
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.

Modified: django/trunk/docs/_ext/djangodocs.py
===================================================================
--- django/trunk/docs/_ext/djangodocs.py        2011-05-13 12:15:52 UTC (rev 
16222)
+++ django/trunk/docs/_ext/djangodocs.py        2011-05-14 02:58:58 UTC (rev 
16223)
@@ -127,6 +127,7 @@
 
     # 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?

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to