Menu

#316 In plaintext output, functions don't show their args

open
other (40)
5
2009-08-05
2009-08-05
Anonymous
No

epydoc.docwriter.PlaintextWriter.write_function() needs a section for func_doc.arg_descrs, e.g.:

if func_doc.arg_descrs:
out(self.section('Parameters:', prefix))
pprefix = prefix + ' '
for lhs, rhs in func_doc.arg_descrs:
lhss = ", ".join(lhs)
out(self.bold(prefix + lhss) + "\n")
out(self._descr(rhs, pprefix))

Discussion


Log in to post a comment.