surrounded 'trailing data' in <td>
This commit is contained in:
parent
0428d41a26
commit
466c92be49
1 changed files with 2 additions and 2 deletions
4
stagit.c
4
stagit.c
|
@ -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>");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue