Class Containerization

java.lang.Object
org.docx4j.convert.out.common.preprocess.Containerization

public class Containerization extends Object
In Word, adjacent paragraphs with the same borders are enclosed in a single border (unless bullets/numbering apply). Similarly with shading. (If the 2 paragraphs are shaded different colors, then the color of the first extends to the start of the second, so there is no white strip between them). To do the same in HTML and PDF output, we put matching paragraphs into a content control, and set the border/shading on that. This gives us an appropriate div or fo:block.
Author:
jharrop, alberto