handlebars/src/main/java/com/github/jknack/handlebars/internal/WhiteSpaceControl.java
private void trim(final Token startToken, final Token endToken) {
    trimRight();

    String start = text(startToken);
    if (start.indexOf("~") > 0) {
      trimLeft();
    }

    String end = text(endToken);
    if (end.indexOf("~") >= 0) {
      pending += 1;
    }

    // clear tokens
    spaces.clear();
  }
/**
   * Trim on left/right is required.
   *
   * @param startToken The start token.
   * @param endToken The end token.
   */
Trim on left/right is required.
@param startToken The start token.
@param endToken The end token.
Trim on left / right is required . @param startToken The start token . @param endToken The end token .
private void trim(final Token startToken, final Token endToken) {
    trimRight();
    String start = text(startToken);
    if (start.indexOf("~") > 0) {
      trimLeft();
    }
    String end = text(endToken);
    if (end.indexOf("~") >= 0) {
      pending += 1;
    }
    spaces.clear();
  }
private void trim ( final Token startToken , final Token endToken ) { trimRight ( ) ; String start = text ( startToken ) ; if ( start . indexOf ( "~" ) > 0 ) { trimLeft ( ) ; } String end = text ( endToken ) ; if ( end . indexOf ( "~" ) >= 0 ) { pending += 1 ; } spaces . clear ( ) ; }
Trim on left/right is required.
Trim on left / right is required .
// clear tokens