diff options
| author | Tim Graham <timograham@gmail.com> | 2014-01-24 08:52:43 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-01-24 09:05:49 -0500 |
| commit | e2e4de65551f152e20070bb42f1b4eb20feb0811 (patch) | |
| tree | 851030027a61dd8aa9cdd09a38414e8f6c8fb0ff | |
| parent | 6ea5f9e0de8851f4fdb840d41da73c284c53bfba (diff) | |
[1.6.x] Fixed #21869 -- Fixed docs building with Sphinx 1.2.1.
Thanks tragiclifestories for the report.
Backport of e1d18b9d2e from master
| -rw-r--r-- | docs/_ext/djangodocs.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index e7e316f58b..71a8780cee 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -101,11 +101,13 @@ class DjangoHTMLTranslator(SmartyPantsHTMLTranslator): self.compact_p = self.context.pop() self.body.append('</table>\n') - # <big>? Really? def visit_desc_parameterlist(self, node): - self.body.append('(') + self.body.append('(') # by default sphinx puts <big> around the "(" self.first_param = 1 + self.optional_param_level = 0 self.param_separator = node.child_text_separator + self.required_params_left = sum([isinstance(c, addnodes.desc_parameter) + for c in node.children]) def depart_desc_parameterlist(self, node): self.body.append(')') |
