function eatWhitespace(allowAtLeastOneNewLine) {
    var result = whitespaceChar.test(input.peek());
    var isFirstNewLine = true;

    while (whitespaceChar.test(input.peek())) {
      ch = input.next();
      if (allowAtLeastOneNewLine && ch === '\n') {
        if (preserve_newlines || isFirstNewLine) {
          isFirstNewLine = false;
          output.add_new_line(true);
        }
      }
    }
    return result;
  }
// the first newline will be output
the first newline will be output
the first newline will be output
function eatWhitespace(allowAtLeastOneNewLine) {
    var result = whitespaceChar.test(input.peek());
    var isFirstNewLine = true;
    while (whitespaceChar.test(input.peek())) {
      ch = input.next();
      if (allowAtLeastOneNewLine && ch === '\n') {
        if (preserve_newlines || isFirstNewLine) {
          isFirstNewLine = false;
          output.add_new_line(true);
        }
      }
    }
    return result;
  }
function eatWhitespace ( allowAtLeastOneNewLine ) { var result = whitespaceChar . test ( input . peek ( ) ) ; var isFirstNewLine = true ; while ( whitespaceChar . test ( input . peek ( ) ) ) { ch = input . next ( ) ; if ( allowAtLeastOneNewLine && ch === '\n' ) { if ( preserve_newlines || isFirstNewLine ) { isFirstNewLine = false ; output . add_new_line ( true ) ; } } } return result ; }
the first newline will be output
the first newline will be output