Exemplo n.º 1
0
  private boolean trimExcess() {
    if (maxLines_ <= 0) return false; // No limit in effect

    int linesToTrim = lines_ - maxLines_;
    if (linesToTrim > 0) {
      lines_ -= DomUtils.trimLines(output_.getElement(), lines_ - maxLines_);
      return true;
    }

    return false;
  }