stagit

static git page - forked from git.codemadness.org/stagit
git clone git://src.gearsix.net/stagit
Log | Files | Refs | Atom | README | LICENSE

commit e951fe209d38932b1d7596fee7bb07c158ce4b75
parent 47cf1a2386e70a386e3fcf03cef6c0366f534358
Author: gearsix <gearsix@tuta.io>
Date:   Wed, 28 Sep 2022 13:07:25 +0100

reversed email to avoid it being parsed by bots

Diffstat:
Mstagit-index.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/stagit-index.c b/stagit-index.c @@ -15,7 +15,7 @@ static git_repository *repo; static const char *rootpath = "/"; static const char *relpath = ""; -static char description[255] = "git gearsix"; +static char description[255] = "gearsix source code"; static char *name = "gearsix"; static char *contact = "gearsix@tuta.io"; static char owner[255]; @@ -79,7 +79,11 @@ writeheader(FILE *fp) fprintf(fp, "<table>\n<tr><td id=\"logo\"><img src=\"%slogo.png\" alt=\"\" width=\"50\" height=\"50\" /></td>\n" "<td><h2>%s</h2>", rootpath, description); if (contact && strlen(contact) > 0) { - fprintf(fp, "<span class=\"contact\"><b>contact:</b> <author>%s</author></span>", contact); + int c = strlen(contact)-1; + fprintf(fp, "<span class=\"contact\"><b>contact:</b> "); + fprintf(fp, "<author style='white-space: nowrap; unicode-bidi:bidi-override; direction: rtl;'>"); + for (; c > -1; --c) fprintf(fp, "%c", contact[c]); + fprintf(fp, "</author></span>\n"); } fputs("</td></tr>\n</table>\n<hr/>\n<div id=\"content\">\n", fp); }