Package org.xhtmlrenderer.layout
Class WhitespaceStripper
- java.lang.Object
-
- org.xhtmlrenderer.layout.WhitespaceStripper
-
public class WhitespaceStripper extends java.lang.Object- Author:
- Torbj�rn Gannholm
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEOLstatic charEOLCstatic java.util.regex.Patternlinefeed_space_collapsestatic java.util.regex.Patternlinefeed_to_spacestatic java.lang.StringSPACEstatic java.util.regex.Patternspace_before_linefeed_collapsestatic java.util.regex.Patternspace_collapsestatic java.util.regex.Patterntab_to_space
-
Constructor Summary
Constructors Constructor Description WhitespaceStripper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidstripInlineContent(java.util.List inlineContent)Strips whitespace early in inline content generation.
-
-
-
Field Detail
-
SPACE
public static final java.lang.String SPACE
- See Also:
- Constant Field Values
-
EOL
public static final java.lang.String EOL
- See Also:
- Constant Field Values
-
EOLC
public static final char EOLC
- See Also:
- Constant Field Values
-
linefeed_space_collapse
public static final java.util.regex.Pattern linefeed_space_collapse
-
linefeed_to_space
public static final java.util.regex.Pattern linefeed_to_space
-
tab_to_space
public static final java.util.regex.Pattern tab_to_space
-
space_collapse
public static final java.util.regex.Pattern space_collapse
-
space_before_linefeed_collapse
public static final java.util.regex.Pattern space_before_linefeed_collapse
-
-
Method Detail
-
stripInlineContent
public static void stripInlineContent(java.util.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: TheinlineContentparameter may be modified- Parameters:
c-inlineContent-
-
-