private int skipTrailingWhite(List content, int start) {
    int size = content.size();
    if (start > size) {
      start = size;
    }

    int index = start;
    //if (currentFormat.mode == Format.TextMode.TRIM_FULL_WHITE
    //        || currentFormat.mode == Format.TextMode.NORMALIZE
    //        || currentFormat.mode == Format.TextMode.TRIM) {
    while (index >= 0) {
      if (!isAllWhitespace(content.get(index - 1))) {
        break;
      }
      --index;
    }
    //}
    return index;
  }
private int skipTrailingWhite(List content, int start)