while (!textFound &&
(currentIndex < lastIndex) &&
(contents.charAt(currentIndex) != '=')) {
currentIndex = getFirstIndexAfterSpace(contents, currentIndex);
if (currentIndex < lastIndex) {
PageElementComment comment = null;
PageElementTag tag = null;
char currentChar = contents.charAt(currentIndex);
if (currentChar == '<') {
comment = analysis.isInComment(currentIndex);
tag = analysis.isInTag(currentIndex, PageElementTag.TAG_WIKI_NOWIKI);
}
if (comment != null) {
currentIndex = comment.getEndIndex();
} else if (tag != null) {
currentIndex = tag.getCompleteEndIndex();
} else if (currentChar != '=') {
if (!Character.isWhitespace(currentChar)) {
textFound = true;