Class WhitespaceCollapser
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.WhitespaceCollapser
Collapses whitespace of an RtfContainer that contains RtfText elements.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch).
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRemove extra whitespace in RtfText elements that are inside container. -
Method Summary
Modifier and TypeMethodDescriptionboolean
private String
processString
(String txt) process one Stringprivate void
processString
(RtfString txt) process one RtfString from our containerprivate void
processText
(RtfText txt) process one RtfText from our container
-
Field Details
-
SPACE
- See Also:
-
lastEndSpace
private boolean lastEndSpace
-
-
Constructor Details
-
WhitespaceCollapser
WhitespaceCollapser(RtfContainer c) Remove extra whitespace in RtfText elements that are inside container.- Parameters:
c
- the container
-
-
Method Details
-
getLastEndSpace
public boolean getLastEndSpace()- Returns:
- last end space
-
processText
process one RtfText from our container -
processString
process one RtfString from our container -
processString
process one String
-