boolean keep = true;
StringBuilder comment = new StringBuilder();
while (pos < next) {
errorResult = errorResults.get(pos);
CheckErrorAlgorithm algorithm = errorResult.getAlgorithm();
PageElementISBN isbn = analysis.isInISBN(beginIndex);
if (isbn != null) {
if ((algorithm != null) &&
(algorithm instanceof CheckErrorAlgorithmISBN)) {
CheckErrorAlgorithmISBN isbnAlgo = (CheckErrorAlgorithmISBN) algorithm;
String reason = isbnAlgo.getReason(isbn);
if ((reason != null) && (reason.length() > 0)) {
if (comment.length() > 0) {
comment.append(" - ");
}
comment.append(reason);
}
}
if (!isbn.isTemplateParameter()) {
if (error.toUpperCase().startsWith("ISBN")) {
error = error.substring(4).trim();
}
PageElementExternalLink link = analysis.isInExternalLink(beginIndex);
if (link != null) {