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)
Beispiel #2
0
 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)