From: Clemens Gößnitzer Subject: bgplg: modernize html To: tech@openbsd.org Date: Sun, 04 Feb 2024 14:47:58 +0100 The attached diff modernizes the html output from bgplg(8): * Switch to html 5 * Unify usage of " vs ' in html tags * Drop trailing / for single tags, type=text/css and for css - not needed in html 5 * Move style definitions from bgplg.head to bgplg.css * Make screen scaling more friendly for mobile devices The output passes the W3 validator. If you like the changes, I can also provide more incremental diffs. Thanks. Index: bgplg.c =================================================================== RCS file: /cvs/src/usr.bin/bgplg/bgplg.c,v retrieving revision 1.19 diff -u -p -u -r1.19 bgplg.c --- bgplg.c 5 Mar 2018 10:53:37 -0000 1.19 +++ bgplg.c 4 Feb 2024 13:40:00 -0000 @@ -260,17 +260,17 @@ main(void) printf("Content-Type: %s\n" "Cache-Control: no-cache\n\n" - "\n" - "\n" - "\n" + "\n" + "\n" "\n" - "%s\n", + "%s\n" + "", CONTENT_TYPE, myname); if (stat(INC_STYLE, &st) == 0) { - printf("\n"); + printf("\n"); } if (stat(INC_HEAD, &st) != 0 || lg_incl(INC_HEAD) != 0) { printf("\n" @@ -308,8 +308,8 @@ main(void) } printf("\n" - "\n" - "\n" + "\n" + "\n" "\n" "\n" "
\n", req ? req : "");
@@ -375,7 +375,7 @@ main(void)
 	if (stat(INC_FOOT, &st) != 0 || lg_incl(INC_FOOT) != 0)
 		printf("
\n"); - printf(" -
+
Index: bgplg.head =================================================================== RCS file: /cvs/src/usr.bin/bgplg/bgplg.head,v retrieving revision 1.3 diff -u -p -u -r1.3 bgplg.head --- bgplg.head 30 Mar 2012 14:31:18 -0000 1.3 +++ bgplg.head 4 Feb 2024 13:40:00 -0000 @@ -1,6 +1,6 @@ - -
+ +