class_docstr: Format tokens with groff escapes to change their color and font style.
  
  .. versionadded:: 2.11
  
  Additional options accepted:
  
  `style`
      The style to use, can be a string or a Style subclass (default:
      ``'default'``).
  
  `monospaced`
      If set to true, monospace font will be used (default: ``true``).
  
  `linenos`
      If set to true, print the line numbers (default: ``false``).
  
  `wrap`
      Wrap lines to the specified number of characters. Disabled if set to 0
      (default: ``0``).
code: def format_unencoded(self, tokensource, outfile):
      self._define_colors(outfile)
  
      outfile.write(".nf\n\\f[CR]\n")
  
      if self.linenos:
          self._write_lineno(outfile)
  
      for ttype, value in tokensource:
          while ttype not in self.styles:
              ttype = ttype.parent
          start, end = self.styles[ttype]
  
          for line in value.splitlines(True):
              if self.wrap > 0:
                  line = self._wrap_line(line)
  
              if start and end:
                  text = self._escape_chars(line.rstrip("\n"))
                  if text != "":
                      outfile.write("".join((start, text, end)))
              else:
                  outfile.write(self._escape_chars(line.rstrip("\n")))
  
              if line.endswith("\n"):
                  if self.linenos:
                      self._write_lineno(outfile)
                      self._linelen = 0
                  else:
                      outfile.write("\n")
                      self._linelen = 0
  
      outfile.write("\n.fi")
  
file_path: catboost/contrib/python/Pygments/py3/pygments/formatters/groff.py
imports: import math
  from pygments.formatter import Formatter
  from pygments.util import get_bool_opt, get_int_opt
label_desc: Use image node_id 7 for calling the GroffFormatter obj's underlying member method code with example usage: obj.format_unencoded(tokensource, outfile) without return types