| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final char | |
| public static final Pattern | |
| public static final Pattern | |
| public static final String | |
| public static final Pattern | |
| public static final Pattern | |
| public static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private static String | |
| private static String | collapseWhitespaceNormalOrNoWrap(String text, boolean collapseLeading)
Collapse whitespace for normal or no-wrap modes. |
| public static void | stripInlineContent(List<Styleable>
the inline content to strip the whitespaces on inlineContent)Strips whitespace early in inline content generation. |
| private static void | |
| private static boolean | Returns: whether the next leading space should collapse or not.this function strips all whitespace from the text according to the CSS 2.1 spec on whitespace handling. |
| EOL | back to summary |
|---|---|
| public static final String EOL | |
| EOLC | back to summary |
|---|---|
| public static final char EOLC | |
| linefeed_space_collapse | back to summary |
|---|---|
| public static final Pattern linefeed_space_collapse | |
| linefeed_to_space | back to summary |
|---|---|
| public static final Pattern linefeed_to_space | |
| SPACE | back to summary |
|---|---|
| public static final String SPACE | |
| space_before_linefeed_collapse | back to summary |
|---|---|
| public static final Pattern space_before_linefeed_collapse | |
| space_collapse | back to summary |
|---|---|
| public static final Pattern space_collapse | |
| tab_to_space | back to summary |
|---|---|
| public static final Pattern tab_to_space | |
| WhitespaceStripper | back to summary |
|---|---|
| public WhitespaceStripper() | |
| canCollapseThrough | back to summary |
|---|---|
| private static boolean canCollapseThrough(Styleable styleable) | |
| collapseWhitespace | back to summary |
|---|---|
| private static String collapseWhitespace(InlineBox iB, IdentValue whitespace, String text, boolean collapseLeading) | |
| collapseWhitespaceNormalOrNoWrap | back to summary |
|---|---|
| private static String collapseWhitespaceNormalOrNoWrap(String text, boolean collapseLeading) Collapse whitespace for normal or no-wrap modes. Much faster (15x in simple testing) than using multiple regular expressions. Note Slightly different behavior to using regular expressions as definition of space characters differ, but I believe this is the correct definition according to CSS specifications. | |
| stripInlineContent | back to summary |
|---|---|
| public static void stripInlineContent(List<Styleable> 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 The | |
| stripTextContent | back to summary |
|---|---|
| private static void stripTextContent(List<Styleable> stripped) | |
| stripWhitespace | back to summary |
|---|---|
| private static boolean stripWhitespace(InlineBox iB, boolean collapseLeading) this function strips all whitespace from the text according to the CSS 2.1 spec on whitespace handling. It accounts for the different whitespace settings like normal, nowrap, pre, etc
| |