Package com.openhtmltopdf.layout
Class WhitespaceStripper
java.lang.Object
com.openhtmltopdf.layout.WhitespaceStripper
public class WhitespaceStripper extends Object
- Author:
- Torbjoern Gannholm
-
Field Summary
Fields Modifier and Type Field Description static StringEOLstatic charEOLCstatic Patternlinefeed_space_collapsestatic Patternlinefeed_to_spacestatic StringSPACEstatic Patternspace_before_linefeed_collapsestatic Patternspace_collapsestatic Patterntab_to_space -
Constructor Summary
Constructors Constructor Description WhitespaceStripper() -
Method Summary
Modifier and Type Method Description static voidstripInlineContent(List<Styleable> inlineContent)Strips whitespace early in inline content generation.
-
Field Details
-
SPACE
- See Also:
- Constant Field Values
-
EOL
- See Also:
- Constant Field Values
-
EOLC
public static final char EOLC- See Also:
- Constant Field Values
-
linefeed_space_collapse
-
linefeed_to_space
-
tab_to_space
-
space_collapse
-
space_before_linefeed_collapse
-
-
Constructor Details
-
WhitespaceStripper
public WhitespaceStripper()
-
-
Method Details
-
stripInlineContent
Strips whitespace early in inline content generation. This can be done because "whitespage" does not ally to :first-line and :first-letter. For dynamic pseudo-classes we are allowed to choose which properties apply. NOTE: TheinlineContentparameter may be modified- Parameters:
inlineContent- the inline content to strip the whitespaces on
-