def _get_result(self, kw, assignment, variables): handler = self._handler doc = variables.replace_string(handler.doc, ignore_errors=True) doc, tags = split_tags_from_doc(doc) tags = variables.replace_list(handler.tags, ignore_errors=True) + tags return KeywordResult(kwname=self.name, libname=handler.libname, doc=getshortdoc(doc), args=kw.args, assign=tuple(assignment), tags=tags, type=kw.type)
def _get_shortdoc(self): doc = self.doc if self.parent and self.parent.doc_format == 'HTML': doc = HtmlToText().get_shortdoc_from_html(doc) return ' '.join(getshortdoc(doc).splitlines())
def shortdoc(self): return getshortdoc(self.doc)
def _get_info(self, name, doc, width): if get_console_length(name) > width: return pad_console_length(name, width) doc = getshortdoc(doc, linesep=' ') info = '%s :: %s' % (name, doc) if doc else name return pad_console_length(info, width)