pyTooling.Sphinx.Workaround
Workarounds for Sphinx and docutils problems.
Classes
FixLatexTableWidths: A post-transform giving the report tables in LaTeX the column widths their directives state.
Classes
- class pyTooling.Sphinx.Workaround.FixLatexTableWidths(document, startnode=None)[source]
A post-transform giving the report tables in LaTeX the column widths their directives state.
Without class
colwidths-given, Sphinx’ LaTeX writer computes the widths itself and ignores the ones the table’s column specifications state, which squeezes a wide table - such as a unit test or code coverage report - into the page.Inheritance
- default_priority = 500
Priority among the post-transforms.
- tableClasses = ('report-unittest-table', 'report-codecov-table')
CSS classes of the tables it fixes.
- __init__(document, startnode=None)
Initial setup for in-place document transforms.
- Return type:
None
- apply(**kwargs)
Override to apply the transform to the document tree.
- Return type:
- Parameters:
kwargs (Any)
- property env: BuildEnvironment
Reference to the
BuildEnvironmentobject.
- document
The document tree to transform.
- startnode
Node from which to begin the transform. For many transforms which apply to the document as a whole, startnode is not set (i.e. its value is None).
- language
Language module local to this document.