public class ParagraphStylesInTableFix
extends Object
A typical case this would fix is where the spacing between paragraphs
is wrong in the PDF|XHTML output (because that is set in DocDefaults).
In a cell, a paragraph uses the table's paragraph properties,
plus the relevant paragraph style (Normal, by default).
The relevant paragraph style trumps the values from the
table's paragraph properties, so that would mean giving
the doc defaults (which we've made part of our styles) priority
over the table's paragraph properties, which is wrong.
TO avoid this, this preprocessor creates a new style, which encapsulates the
paragraph style, with DocDefaults given lower priority
than table style. This created style has no w:basedOn setting.
This preprocessor is required if paragraphs in tables are being styled incorrectly.
- Since:
- 3.0.2