From 66558056aca2554f7bc80d31c5c0880d6520a088 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 18 Feb 2019 17:29:49 -0500 Subject: Clean up htmlHeader --- bin/hi.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'bin') diff --git a/bin/hi.c b/bin/hi.c index 53cfe252..2656313a 100644 --- a/bin/hi.c +++ b/bin/hi.c @@ -500,7 +500,7 @@ static void htmlTabSize(const char *tab) { } static void htmlHeader(const char *opts[]) { - if (!opts[Document]) goto pre; + if (!opts[Document]) goto body; printf("\n"); if (opts[Title]) htmlEscape(opts[Title], strlen(opts[Title])); printf("\n"); @@ -515,17 +515,17 @@ static void htmlHeader(const char *opts[]) { htmlTabSize(opts[Tab]); printf(" }\n"); } - printf( - ".hi.%s:focus { outline-style: none; color: goldenrod; }", - ClassName[Tag] - ); for (enum Class class = 0; class < ClassLen; ++class) { if (!HTMLStyle[class]) continue; printf(".hi.%s { %s }\n", ClassName[class], HTMLStyle[class]); } + printf( + ".hi.%s:focus { color: goldenrod; outline: none; }\n", + ClassName[Tag] + ); printf("\n"); } -pre: +body: if (opts[Inline] && opts[Tab]) { printf("
\n");
 }
 
-static void htmlAnchorTag(const char *opts[], const char *str, size_t len) {
+static void htmlAnchor(const char *opts[], const char *str, size_t len) {
 	if (opts[Inline]) {
 		printf("