Fix display of Commit Message

If there are no HTML tags in the text, just break on lines.

Change-Id: Ifead11e79af8db2a06c3824b7ab4877e51d2af03
This commit is contained in:
Shawn Pearce
2013-01-31 21:25:59 -08:00
parent 6a09040248
commit dbc896a367

View File

@@ -178,7 +178,7 @@ public abstract class PrettyFormatter implements SparseHtmlFile {
}
// Line end occurs before the next HTML tag. Break the line.
if (0 <= lf && lf < tagStart) {
if (0 <= lf && (lf < tagStart || tagStart < 0)) {
if (textChunkStart < lf) {
lastTag.open(buf, html);
htmlText(html.substring(textChunkStart, lf));