smu-noxz

[fork] simple markup - markdown like syntax
git clone git://git.noxz.tech/smu-noxz
Log | Files | Refs | LICENSE

commit 1d03697178b6a0d10aa23e27883f85eb4c3f1603
parent befc902755909996e6a732950c6157638a29dfe0
Author: Chris Noxz <chris@noxz.tech>
Date:   Tue, 14 Apr 2020 09:27:18 +0200

Fix tabs (aesthetics)

Diffstat:
Msmu.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/smu.c b/smu.c @@ -275,7 +275,7 @@ dolink(const char *begin, const char *end, int newblock) { && *link != '/' && (strstr(link, "://") == NULL || strstr(link, "://") - link > linkend - link)) { - fputs(base_url, stdout); + fputs(base_url, stdout); } hprint(link, linkend); fputs("\" alt=\"", stdout); @@ -294,7 +294,7 @@ dolink(const char *begin, const char *end, int newblock) { && *link != '/' && (strstr(link, "://") == NULL || strstr(link, "://") - link > linkend - link)) { - fputs(base_url, stdout); + fputs(base_url, stdout); } hprint(link, linkend); fputs("\"", stdout); @@ -602,7 +602,7 @@ main(int argc, char *argv[]) { int s, i; unsigned long len, bsize; FILE *source = stdin; - base_url[0] = '\0'; + base_url[0] = '\0'; for(i = 1; i < argc; i++) { if(!strcmp("-v", argv[i])) @@ -610,7 +610,7 @@ main(int argc, char *argv[]) { else if(!strcmp("-n", argv[i])) nohtml = 1; else if(!strcmp("-b", argv[i])) - strncpy(base_url, argv[(i++) + 1], 2048); + strncpy(base_url, argv[(i++) + 1], 2048); else if(argv[i][0] != '-') break; else if(!strcmp("--", argv[i])) {