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 _wrap_line(self, line):
      length = len(line.rstrip("\n"))
      space = "     " if self.linenos else ""
      newline = ""
  
      if length > self.wrap:
          for i in range(0, math.floor(length / self.wrap)):
              chunk = line[i * self.wrap : i * self.wrap + self.wrap]
              newline += chunk + "\n" + space
          remainder = length % self.wrap
          if remainder > 0:
              newline += line[-remainder - 1 :]
              self._linelen = remainder
      elif self._linelen + length > self.wrap:
          newline = ("\n" + space) + line
          self._linelen = length
      else:
          newline = line
          self._linelen += length
  
      return newline
  
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 5 for calling the GroffFormatter obj's underlying member method code with example usage: obj._wrap_line(line) and returns: newline