def _explanation(self, **kw): if not self.explanation: yield "" return yield "\\item \\textbf{Description:} \\\\" format_prec = max(int(kw["format_prec"]), 4) wrapper = textwrap.TextWrapper(width=format_prec) yield from wrapper.wrap(TFL.tex_quoted(self.explanation))
def _explanation (self, ** kw) : if not self.explanation : yield "" return yield "\\item \\textbf{Description:} \\\\" format_prec = max (int (kw ["format_prec"]), 4) wrapper = textwrap.TextWrapper (width = format_prec) for l in wrapper.wrap (TFL.tex_quoted (self.explanation)) : yield l
def _tex_description(self, **kw): for l in self._description(**kw): yield TFL.tex_quoted(l)
def _tex_description (self, ** kw) : for l in self._description (** kw) : yield TFL.tex_quoted (l)