Class WhitespaceRemovalProcessor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String IN_LINE
      For whitespace removals: matching more than one horizontal whitespace in a single line.
      private static java.lang.String LINE_END
      For whitespace removals: matching one or more new-lines after horizontal spaces (e.g.
      private static java.lang.String LINE_START
      For whitespace removals: matching one or more horizontal space (e.g.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TemplateModel process​(TemplateModel templateModel, int ppIndex)
      Performs any post-processing on the given TemplateModel as defined by the implementing class.
      private java.lang.String reduceWhitespace​(java.lang.String text)
      Replace a given string with a whitespace-reduced variant of itself.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LINE_END

        private static final java.lang.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:
        Constant Field Values
      • IN_LINE

        private static final java.lang.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:
        Constant Field Values
      • LINE_START

        private static final java.lang.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:
        Constant Field Values
    • Constructor Detail

      • WhitespaceRemovalProcessor

        public WhitespaceRemovalProcessor()