From 4c8ab994c313a4cc218b2578c0d123bb67244df5 Mon Sep 17 00:00:00 2001 From: Thorsten Ortlepp Date: Sat, 29 Feb 2020 15:42:35 +0100 Subject: Fix HTML: use instead of --- stagit-index.c | 4 ++-- stagit.c | 20 ++++++++++---------- style.css | 8 ++++++-- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/stagit-index.c b/stagit-index.c index 2b243ec..832b61a 100644 --- a/stagit-index.c +++ b/stagit-index.c @@ -77,8 +77,8 @@ writeheader(FILE *fp) fputs("\n" "\n\n
\n
\n" "\n" - "" - "" + "" + "" "\n", fp); } diff --git a/stagit.c b/stagit.c index 3c26252..8327ca3 100644 --- a/stagit.c +++ b/stagit.c @@ -919,8 +919,8 @@ writefiles(FILE *fp, const git_oid *id) int ret = -1; fputs("
NameDescriptionOwnerLast commit
NameDescriptionOwnerLast commit
\n" - "" - "" + "" + "" "\n\n", fp); if (!git_commit_lookup(&commit, repo, id) && @@ -1005,9 +1005,9 @@ writerefs(FILE *fp) /* print header if it has an entry (first). */ if (++count == 1) { fprintf(fp, "

%s

ModeNameSizeModeNameSize
" - "\n" - "" - "\n\n" + "\n" + "" + "\n\n" "\n", titles[j], ids[j]); } @@ -1187,11 +1187,11 @@ main(int argc, char *argv[]) relpath = ""; mkdir("commit", S_IRWXU | S_IRWXG | S_IRWXO); writeheader(fp, "Log"); - fputs("
NameLast commit dateAuthor
NameLast commit dateAuthor
\n" - "" - "" - "" - "\n\n", fp); + fputs("
DateCommit messageAuthorFiles+-
\n" + "" + "" + "" + "\n\n", fp); if (cachefile && head) { /* read from cache file (does not need to exist) */ diff --git a/style.css b/style.css index d1cd6d3..1760c49 100644 --- a/style.css +++ b/style.css @@ -37,7 +37,7 @@ a.line { text-decoration: none; } -table thead td { +table th { font-weight: bold; } @@ -45,7 +45,7 @@ table td { padding: 0 0.4em; } -#content table td { +#content table td, #content table th { vertical-align: top; white-space: nowrap; } @@ -69,6 +69,10 @@ td.num { text-align: right; } +th.num { + text-align: right; +} + .desc { color: #777; } -- cgit v1.2.3
DateCommit messageAuthorFiles+-