while (!shouldStop) {
shouldStop = true;
currentValuePos = getLastIndexBeforeWhiteSpace(paramValue, currentValuePos);
if ((currentValuePos > 0) &&
(paramValue.charAt(currentValuePos) == '>')) {
PageElementTag tag = analysis.isInTag(
paramValueStartIndex +
currentValuePos);
if (tag != null) {
String name = tag.getNormalizedName();
if (PageElementTag.TAG_HTML_BR.equals(name)) {
breakFound = true;
shouldStop = false;
beginError = tag.getBeginIndex();
if (endError < 0) {
endError = tag.getEndIndex();
}
currentValuePos -= tag.getEndIndex() - tag.getBeginIndex();
} else if (!breakFound) {
if (/*PageElementTag.TAG_WIKI_MATH.equals(name) ||*/
PageElementTag.TAG_WIKI_HIERO.equals(name)) {
tagAfter = true;
shouldStop = false;
endError = tag.getCompleteBeginIndex();
currentValuePos -= tag.getEndIndex() - tag.getCompleteBeginIndex();
}
}
} else {
PageElementComment comment = analysis.isInComment(paramValueStartIndex + currentValuePos);
if (comment != null) {