spaced = false, no CSS classes), with HTML whitespace collapsing
across element boundaries. U+00A0 ( ) is intentionally not treated as collapsible.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | afterWhitespace
true at paragraph start and after emitted whitespace/line breaks → leading spaces are dropped |
| private final List | |
| private static final Pattern | |
| private final List | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| private void | |
| pack-priv List | |
| private static List | |
| private static List | trimTrailing(List<Inline> inlines)
Removes trailing whitespace runs and trailing line breaks (browsers do not render a line break that is the last thing in a block). |
| afterWhitespace | back to summary |
|---|---|
| private boolean afterWhitespace true at paragraph start and after emitted whitespace/line breaks → leading spaces are dropped | |
| blocks | back to summary |
|---|---|
| private final List<Block> blocks | |
| COLLAPSIBLE_WHITESPACE | back to summary |
|---|---|
| private static final Pattern COLLAPSIBLE_WHITESPACE | |
| currentInlines | back to summary |
|---|---|
| private final List<Inline> currentInlines | |
| preserveWhitespace | back to summary |
|---|---|
| private final boolean preserveWhitespace | |
| BlockCollector | back to summary |
|---|---|
| pack-priv BlockCollector(boolean preserveWhitespace) | |
| add | back to summary |
|---|---|
| pack-priv void add(Block block) Adds a block, closing any open anonymous paragraph first. | |
| appendImage | back to summary |
|---|---|
| pack-priv void appendImage(Inline. | |
| appendLineBreak | back to summary |
|---|---|
| pack-priv void appendLineBreak() | |
| appendText | back to summary |
|---|---|
| pack-priv void appendText(String text, InlineStyle style, WhiteSpaceMode whiteSpace) | |
| closeParagraph | back to summary |
|---|---|
| private void closeParagraph() | |
| finish | back to summary |
|---|---|
| pack-priv List | |
| mergeAdjacentRuns | back to summary |
|---|---|
| private static List | |
| trimTrailing | back to summary |
|---|---|
| private static List Removes trailing whitespace runs and trailing line breaks (browsers do not render a line break that is the last thing in a block). | |