diff options
author | Dirk Baechle <dl9obn@darc.de> | 2013-05-03 23:15:51 (GMT) |
---|---|---|
committer | Dirk Baechle <dl9obn@darc.de> | 2013-05-03 23:15:51 (GMT) |
commit | 0947775a51fa7bdb446b40c08f417fe6ce1ebbdc (patch) | |
tree | f783e3547d18fdfb589c81aceb3d4251ecd20e2b /bin/scons-proc.py | |
parent | 6885c3fd4f501aff9d5cde7b0bb3aedaf5b63e10 (diff) | |
download | SCons-0947775a51fa7bdb446b40c08f417fe6ce1ebbdc.zip SCons-0947775a51fa7bdb446b40c08f417fe6ce1ebbdc.tar.gz SCons-0947775a51fa7bdb446b40c08f417fe6ce1ebbdc.tar.bz2 |
- relinked the build of all documentation outputs to the bootstrap process
- corrected the doc folder SConscripts and added XSL and titlepage files where required
Diffstat (limited to 'bin/scons-proc.py')
-rw-r--r-- | bin/scons-proc.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/bin/scons-proc.py b/bin/scons-proc.py index 5be1f00..9567db8 100644 --- a/bin/scons-proc.py +++ b/bin/scons-proc.py @@ -267,29 +267,35 @@ class Function(SConsThing): prefix = 'f-' tag = 'function' - def xml_term(self): + def xml_terms(self): if self.arguments is None: a = stf.newNode("arguments") stf.setText(a, '()') arguments = [a] else: - arguments = self.arguments - t = stf.newNode("term") + arguments = self.arguments + tlist = [] for arg in arguments: signature = 'both' if stf.hasAttribute(arg, 'signature'): signature = stf.getAttribute(arg, 'signature') s = stf.getText(arg).strip() if signature in ('both', 'global'): - syn = stf.newNode("synopsis") + t = stf.newNode("term") + syn = stf.newNode("literal") stf.setText(syn, '%s%s' % (self.name, s)) stf.appendNode(t, syn) + tlist.append(t) if signature in ('both', 'env'): - syn = stf.newNode("synopsis") + t = stf.newNode("term") + syn = stf.newNode("literal") stf.setText(syn, 'env.%s%s' % (self.name, s)) stf.appendNode(t, syn) + tlist.append(t) - return t + if not tlist: + tlist.append(stf.newNode("term")) + return tlist def entityfunc(self): return self.name |