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 TypeMethodDescriptionbooleanprivate StringprocessString(String txt) process one Stringprivate voidprocessString(RtfString txt) process one RtfString from our containerprivate voidprocessText(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
-