Class WhitespaceRemovalProcessor

java.lang.Object
com.fizzed.rocker.processor.WhitespaceRemovalProcessor
All Implemented Interfaces:
TemplateModelPostProcessor

public class WhitespaceRemovalProcessor extends Object implements TemplateModelPostProcessor
This post-processor reduces the amount of whitespace in static strings.
  • Field Details

    • LINE_END

      private static final String LINE_END
      For whitespace removals: matching one or more new-lines after horizontal spaces (e.g. space, tab), i.e. at the end of a line. Will be replaced by a single \n.
      See Also:
    • IN_LINE

      private static final String IN_LINE
      For whitespace removals: matching more than one horizontal whitespace in a single line. Will be replaced by a single space.
      See Also:
    • LINE_START

      private static final String LINE_START
      For whitespace removals: matching one or more horizontal space (e.g. space, tab) after one or more new-lines (i.e. at the beginning of a line). Will be replaced by a single new line.
      See Also:
  • Constructor Details

    • WhitespaceRemovalProcessor

      public WhitespaceRemovalProcessor()
  • Method Details