stagit

My fork of stagit

git clone git://git.shimmy1996.com/stagit.git
commit 95171792b6fafb8ee50f5f9f31817d46a99356ce
parent 21159314129e9e16198f63bc7ca31e86c9a69735
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sat,  4 Apr 2020 13:15:46 -0500

Use p and pre for descriptions and url

Diffstat:
Mstagit-index.c | 4++--
Mstagit.c | 10++++------
2 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/stagit-index.c b/stagit-index.c
@@ -74,9 +74,9 @@ writeheader(FILE *fp)
 	fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
 	fputs("</head>\n<body>\n", fp);
     fprintf(fp, "<h1>%s</h1>\n", title);
-    fprintf(fp, "<span class=\"desc\">");
+    fprintf(fp, "<p class=\"desc\">");
 	xmlencode(fp, description, strlen(description));
-	fputs("</span>\n"
+	fputs("</p>\n"
 		"<hr/>\n<div id=\"content\">\n"
 		"<table id=\"index\"><thead>\n"
 		"<tr><td><b>Name</b></td><td><b>Description</b></td><td><b>Owner</b></td>"
diff --git a/stagit.c b/stagit.c
@@ -478,15 +478,13 @@ writeheader(FILE *fp, const char *title)
 		        relpath, license);
 	fputs("</nav>\n<h1>", fp);
 	xmlencode(fp, strippedname, strlen(strippedname));
-	fputs("</h1><span class=\"desc\">", fp);
+	fputs("</h1><p class=\"desc\">", fp);
 	xmlencode(fp, description, strlen(description));
-	fputs("</span><br/>", fp);
+	fputs("<p>", fp);
 	if (cloneurl[0]) {
-		fputs("git clone <a href=\"", fp);
+		fputs("<pre>git clone ", fp);
 		xmlencode(fp, cloneurl, strlen(cloneurl));
-		fputs("\">", fp);
-		xmlencode(fp, cloneurl, strlen(cloneurl));
-		fputs("</a><br/>", fp);
+		fputs("</pre>", fp);
 	}
 	fputs("\n<hr/>\n<div id=\"content\">\n", fp);
 }