ctucx.git: stagit

ctucx' stagit fork

commit 1afb160527da0698f76094d7f323205013aa0a00
parent d6dc2626be4a4fc2544b1630a13c04469304982b
Author: Leah (ctucx) <leah@ctu.cx>
Date: Tue, 24 May 2022 13:47:28 +0200

about: refactor html output
1 file changed, 4 insertions(+), 4 deletions(-)
M
stagit.c
|
8
++++----
diff --git a/stagit.c b/stagit.c
@@ -1401,15 +1401,15 @@ main(int argc, char *argv[])
 		const char *s = git_blob_rawcontent((git_blob *)obj);
 		if (r == 1 | r == 2) {
 			git_off_t len = git_blob_rawsize((git_blob *)obj);
-			fputs("<div class=\"md\">", fp);
+			fputs("<div class=\"responsive\">", fp);
 			if (md_html(s, len, process_output_md, fp, MD_FLAG_TABLES | MD_FLAG_TASKLISTS |
 			    MD_FLAG_PERMISSIVEEMAILAUTOLINKS | MD_FLAG_PERMISSIVEURLAUTOLINKS, 0))
 				err(1, "error parsing markdown");
-			fputs("</div>\n", fp);
+			fputs("</div>", fp);
 		} else {
-			fputs("<pre id=\"about\">", fp);
+			fputs("<div class=\"responsive\"><pre>", fp);
 			xmlencode(fp, s, strlen(s));
-			fputs("</pre>\n", fp);
+			fputs("</pre></div>", fp);
 		}
 		git_object_free(obj);
 		writefooter(fp);