~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to docs/_ext/djangodocs.py

  • Committer: Package Import Robot
  • Author(s): Luke Faraone
  • Date: 2013-08-13 16:49:39 UTC
  • mfrom: (1.3.9)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: package-import@ubuntu.com-20130813164939-irlkd7hokvcgocfl
Tags: upstream-1.5.2
ImportĀ upstreamĀ versionĀ 1.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
 
91
91
    # Don't use border=1, which docutils does by default.
92
92
    def visit_table(self, node):
 
93
        self.context.append(self.compact_p)
 
94
        self.compact_p = True
93
95
        self._table_row_index = 0 # Needed by Sphinx
94
96
        self.body.append(self.starttag(node, 'table', CLASS='docutils'))
95
97
 
 
98
    def depart_table(self, node):
 
99
        self.compact_p = self.context.pop()
 
100
        self.body.append('</table>\n')
 
101
 
96
102
    # <big>? Really?
97
103
    def visit_desc_parameterlist(self, node):
98
104
        self.body.append('(')
120
126
    # which is a bit less obvious that I'd like.
121
127
    #
122
128
    # FIXME: these messages are all hardcoded in English. We need to change
123
 
    # that to accomodate other language docs, but I can't work out how to make
 
129
    # that to accommodate other language docs, but I can't work out how to make
124
130
    # that work.
125
131
    #
126
132
    version_text = {