Lines Matching defs:text
8 breaks, but it also implement transformations to the help text. The
16 terminals, like, konsole, this is translated into a colored bold text.
35 def enrich_text(self, text):
37 Handle ReST markups (currently, only \`\`text\`\` markups).
39 if self._tty and text:
40 # Replace ``text`` with ANSI SGR (bold)
42 lambda m: f'\033[1m{m.group(1)}\033[0m', text)
43 return text
45 def _fill_text(self, text, width, indent):
49 enriched = self.enrich_text(text)