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 String
EOL
static char
EOLC
static Pattern
linefeed_space_collapse
static Pattern
linefeed_to_space
static String
SPACE
static Pattern
space_before_linefeed_collapse
static Pattern
space_collapse
static Pattern
tab_to_space
-
Constructor Summary
Constructors Constructor Description WhitespaceStripper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
stripInlineContent(List inlineContent)
Strips whitespace early in inline content generation.
-
-
-
Field Detail
-
SPACE
public static final String SPACE
- See Also:
- Constant Field Values
-
EOL
public static final String EOL
- See Also:
- Constant Field Values
-
EOLC
public static final char EOLC
- See Also:
- Constant Field Values
-
linefeed_space_collapse
public static final Pattern linefeed_space_collapse
-
linefeed_to_space
public static final Pattern linefeed_to_space
-
tab_to_space
public static final Pattern tab_to_space
-
space_collapse
public static final Pattern space_collapse
-
space_before_linefeed_collapse
public static final Pattern space_before_linefeed_collapse
-
-
Method Detail
-
stripInlineContent
public static void stripInlineContent(List inlineContent)
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: TheinlineContent
parameter may be modified- Parameters:
inlineContent
- the inline content to strip the whitespaces on
-
-