code: private int skipLineBreak(Source source, final int offset) {
          char p;
          char c;
          int index = offset;
          p = source.charAt(index);
          index++;
          if (index < source.length()) {
              c = source.charAt(index);
              if ((c == '\n' || c == '\r') && c != p) {
                  index++;
              }
          }
          return index;
      }
docs: Skip line break characters. '\r\n' for example
  
  @param source text source
  @param offset current index
  @return new index