Class WhitespaceCollapser

java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.WhitespaceCollapser

final class WhitespaceCollapser extends Object

Collapses whitespace of an RtfContainer that contains RtfText elements.

This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch).

  • Field Details

  • 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

      private void processText(RtfText txt)
      process one RtfText from our container
    • processString

      private void processString(RtfString txt)
      process one RtfString from our container
    • processString

      private String processString(String txt)
      process one String