surrounded 'trailing data' in <td>

This commit is contained in:
Noah Swerhun 2021-04-17 14:44:28 -05:00
parent 0428d41a26
commit 466c92be49

View file

@ -540,12 +540,10 @@ writeblobhtml(FILE *fp, const git_blob *blob)
n++;
fprintf(fp, "<tr>");
fprintf(fp, nfmt, n, n, n);
//fprintf(fp, "<span class=\"text\">");
fprintf(fp, "<td class=\"blob-item\">");
nl_only = xmlencode_no_nl(fp, &s[prev], i - prev + 1);
if (nl_only)
putc('\n', fp);
//fprintf(fp, "</span>\n");
fprintf(fp, "</td>");
fprintf(fp, "</tr>");
putc('\n', fp);
@ -555,7 +553,9 @@ writeblobhtml(FILE *fp, const git_blob *blob)
if ((len - prev) > 0) {
n++;
fprintf(fp, nfmt, n, n, n);
fprintf(fp, "<td class=\"blob-item\">");
xmlencode(fp, &s[prev], len - prev);
fprintf(fp, "</td>");
}
}