stagit

My fork of stagit

git clone git://git.shimmy1996.com/stagit.git
commit c7cfc18b30bc984ac4e8e4bf9740bf3a37431a2c
parent 64bf9e9a82d0a240bb29e3b2c1421a6d6a8771cf
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
@@ -372,15 +372,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);
 }