From 70b7d640b2ac1ccfa5ce7689743206aedbfffb43 Mon Sep 17 00:00:00 2001 From: Curtis 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 15dcd4a2..a96ab902 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("
Commit message (Collapse)Author
2018-09-02SendEnv LANGJune McEnroe
2018-08-27Add New Order — TemptationJune McEnroe
2018-08-26Add NetBSD to install.shJune McEnroe
2018-08-24Show hostname in title over SSHJune McEnroe
2018-08-23Alias bc='bc -l'June McEnroe
2018-08-20Update usage of scheme in READMEJune McEnroe
2018-08-20Use scheme.h in fbatt and fbclockJune McEnroe
2018-08-20Generate scheme.hJune McEnroe
2018-08-20Add dependencies on gfx.hJune McEnroe
2018-08-18Add Blondie — Heart of GlassJune McEnroe
Why didn't I know about this song? I love it.
2018-08-18Set FCEDIT=$EDITORJune McEnroe
2018-08-18Only post commits with bodies to MastodonJune McEnroe
2018-08-18Run tf/cfg link script with /bin/shJune McEnroe
2018-08-18Run {,s,t}up with /bin/shJune McEnroe
2018-08-18Use whence instead of typeJune McEnroe
type is an alias for whence -v and is more for human consumption.
2018-08-18Cut off path components until right prompt fitsJune McEnroe
Keeps paths valid (from somehwere) rather than abrupt truncation.
2018-08-17Add "private" alias to source encrypted fileJune McEnroe
Why is there no easy way to *edit* an encrypted file?
2018-08-17Add vim mapping to add a #includeJune McEnroe