Lines 3536-3543
Link Here
|
3536 |
|
3536 |
|
3537 |
// Insert last gap |
3537 |
// Insert last gap |
3538 |
boolean closingTag = isHtmlBreakTag || (text.htmlIndexes != null && (text.htmlIndexes[max] & JAVADOC_TAGS_ID_MASK) == htmlTagID); |
3538 |
boolean closingTag = isHtmlBreakTag || (text.htmlIndexes != null && (text.htmlIndexes[max] & JAVADOC_TAGS_ID_MASK) == htmlTagID); |
|
|
3539 |
boolean isValidHtmlSeparatorTag = max > 0 && isHtmlSeparatorTag && closingTag; |
3539 |
if (previousEnd != -1) { |
3540 |
if (previousEnd != -1) { |
3540 |
if (max > 0 && isHtmlSeparatorTag && closingTag) { |
3541 |
if (isValidHtmlSeparatorTag) { |
3541 |
if (linesAfter == 0) linesAfter = 1; |
3542 |
if (linesAfter == 0) linesAfter = 1; |
3542 |
} |
3543 |
} |
3543 |
if (linesAfter > 0) { |
3544 |
if (linesAfter > 0) { |
Lines 3563-3572
Link Here
|
3563 |
this.scanner.resetTo(text.sourceEnd+1, this.scannerEndPosition - 1); |
3564 |
this.scanner.resetTo(text.sourceEnd+1, this.scannerEndPosition - 1); |
3564 |
|
3565 |
|
3565 |
// Return the new lines to insert after |
3566 |
// Return the new lines to insert after |
3566 |
if (max > 0 && isHtmlSeparatorTag) { |
3567 |
return isValidHtmlSeparatorTag ? 1 : 0; |
3567 |
return 1; |
|
|
3568 |
} |
3569 |
return 0; |
3570 |
} |
3568 |
} |
3571 |
|
3569 |
|
3572 |
private void printJavadocNewLine(StringBuffer buffer) { |
3570 |
private void printJavadocNewLine(StringBuffer buffer) { |