diff options
author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-08-26 19:38:27 +0000 |
---|---|---|
committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-08-26 19:38:27 +0000 |
commit | e3fad41859794a604446b8059c90b442cf344987 (patch) | |
tree | 1b969cc9047d80f825c47d8bb86066f22a63ef26 /docs/_ext/djangodocs.py | |
parent | 471533fb93176cc0f37b421d48800eb0b38ea385 (diff) | |
download | django-e3fad41859794a604446b8059c90b442cf344987.tar.gz |
A noble spirit no longer embiggens the smallest function signatures.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8593 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/_ext/djangodocs.py')
-rw-r--r-- | docs/_ext/djangodocs.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index 2375be481d..61561e7972 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -79,7 +79,16 @@ class DjangoHTMLTranslator(sphinx.htmlwriter.SmartyPantsHTMLTranslator): # Don't use border=1, which docutils does by default. def visit_table(self, node): self.body.append(self.starttag(node, 'table', CLASS='docutils')) - + + # <big>? Really? + def visit_desc_parameterlist(self, node): + self.body.append('(') + self.first_param = 1 + + def depart_desc_parameterlist(self, node): + self.body.append(')') + pass + # Give each section a unique ID -- nice for custom CSS hooks # This is different on docutils 0.5 vs. 0.4... |