summaryrefslogtreecommitdiff
path: root/sphinx/directives.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-12-06 02:00:01 +0000
committerGeorg Brandl <georg@python.org>2007-12-06 02:00:01 +0000
commitc5580ebd9115dc8dd1e76a8ac25cea95bc3db2ce (patch)
tree8faed5717da5e1fb2cb763906f57f53a603176c4 /sphinx/directives.py
parent3d74adea2595f35994093091410bc8607bd49f74 (diff)
downloadsphinx-git-c5580ebd9115dc8dd1e76a8ac25cea95bc3db2ce.tar.gz
Continue work on the PDF builder. The documents now build and run through LaTeX.
Some elements are still missing though.
Diffstat (limited to 'sphinx/directives.py')
-rw-r--r--sphinx/directives.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/directives.py b/sphinx/directives.py
index 41625c377..193e096fe 100644
--- a/sphinx/directives.py
+++ b/sphinx/directives.py
@@ -217,7 +217,8 @@ def parse_c_signature(signode, sig, desctype):
raise ValueError('no match')
rettype, name, arglist = m.groups()
- parse_c_type(signode, rettype)
+ signode += addnodes.desc_type("", "")
+ parse_c_type(signode[-1], rettype)
signode += addnodes.desc_name(name, name)
if not arglist:
if desctype == 'cfunction':
@@ -293,6 +294,7 @@ def desc_directive(desctype, arguments, options, content, lineno,
node['desctype'] = desctype
noindex = ('noindex' in options)
+ node['noindex'] = noindex
# remove backslashes to support (dummy) escapes; helps Vim's highlighting
signatures = map(lambda s: s.strip().replace('\\', ''), arguments[0].split('\n'))
names = []