From acc2de6dd7915528926fcce093957cebda9a106b Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Wed, 1 Sep 2021 17:59:15 -0600 Subject: [PATCH] use table layout for twtxt feed preview --- main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 3846cb6..2d8cf91 100644 --- a/main.c +++ b/main.c @@ -83,7 +83,7 @@ int gettwtxt(FILE* f) { char *l, *d, *m; FILE* twtxt = fopen(SITEROOT "twtxt.txt", "r"); - scat(buf, "

recent activity:

"); + scat(buf, "

recent activity:

"); if (!twtxt) { error("Get twtxt feed", "no twtxt.txt"); return 0; @@ -98,10 +98,11 @@ int gettwtxt(FILE* f) { l++; } scat(msgbuf, l); + scat(buf, ""); d = datebuf; while (*d) { *d++ = 0; @@ -112,7 +113,7 @@ int gettwtxt(FILE* f) { } i++; } - scat(buf, "see all"); + scat(buf, "
"); scat(buf, datebuf); - scat(buf, ": "); + scat(buf, ": "); scat(buf, msgbuf); - scat(buf, "
"); + scat(buf, "
see all"); scat(buf, "
"); fputs(buf, f); return 1;