docutils.writers.odf_odt.pygmentsformatter module

Additional support for Pygments formatter.

class OdtPygmentsFormatter(rststyle_function, escape_function)[source]

Bases: Formatter

rststyle(name, parameters=())[source]
class OdtPygmentsProgFormatter(rststyle_function, escape_function)[source]

Bases: OdtPygmentsFormatter

format(tokensource, outfile)[source]

This method must format the tokens from the tokensource iterable and write the formatted version to the file object outfile.

Formatter options can control how exactly the tokens are converted.

class OdtPygmentsLaTeXFormatter(rststyle_function, escape_function)[source]

Bases: OdtPygmentsFormatter

format(tokensource, outfile)[source]

This method must format the tokens from the tokensource iterable and write the formatted version to the file object outfile.

Formatter options can control how exactly the tokens are converted.