class documentation

class GroffFormatter(Formatter): (source)

View In Hierarchy

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``).

Method __init__ Undocumented
Method format_unencoded Undocumented
Class Variable aliases Undocumented
Class Variable filenames Undocumented
Class Variable name Undocumented
Instance Variable linenos Undocumented
Instance Variable monospaced Undocumented
Instance Variable styles Undocumented
Instance Variable wrap Undocumented
Method _define_colors Undocumented
Method _escape_chars Undocumented
Method _make_styles Undocumented
Method _wrap_line Undocumented
Method _write_lineno Undocumented
Instance Variable _linelen Undocumented
Instance Variable _lineno Undocumented

Inherited from Formatter:

Method format Format ``tokensource``, an iterable of ``(tokentype, tokenstring)`` tuples and write it into ``outfile``.
Method get_style_defs Return the style definitions for the current style as a string.
Class Variable unicodeoutput Undocumented
Instance Variable encoding Undocumented
Instance Variable full Undocumented
Instance Variable options Undocumented
Instance Variable style Undocumented
Instance Variable title Undocumented
def __init__(self, **options): (source)

Undocumented

def format_unencoded(self, tokensource, outfile): (source)

Undocumented

Undocumented

monospaced = (source)

Undocumented

Undocumented

Undocumented

def _define_colors(self, outfile): (source)

Undocumented

def _escape_chars(self, text): (source)

Undocumented

def _make_styles(self): (source)

Undocumented

def _wrap_line(self, line): (source)

Undocumented

def _write_lineno(self, outfile): (source)

Undocumented

_linelen: int = (source)

Undocumented

Undocumented