@classmethod<EOL><INDENT>def create_param_doc(cls, param, prefix=None):<DEDENT>
desc = cls.exclude_html_reg.sub('<STR_LIT>', param['<STR_LIT:description>']).strip()<EOL>if not desc:<EOL><INDENT>desc = "<STR_LIT>"<EOL><DEDENT>name = param['<STR_LIT:name>']<EOL>if prefix:<EOL><INDENT>name = "<STR_LIT>" % (prefix, name)<EOL><DEDENT>doc_ = "<STR_LIT>" % (name, desc, param['<STR_LIT>'])<EOL>if param['<STR_LIT>']:<EOL><INDENT>doc_ += "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>doc_ += "<STR_LIT>"<EOL><DEDENT>for param in param.get('<STR_LIT>', []):<EOL><INDENT>doc_ += "<STR_LIT:\n>" + cls.create_param_doc(param, name)<EOL><DEDENT>return doc_<EOL>
Generate documentation for single parameter of function
:param param: dict contains info about parameter
:param sub: prefix string for recursive purposes