fmt3: remove trailing slashes from generated html

The trailing slashes in some of the tags were a XHTML thing that was
acceptable with HTML 4.  Since both of those are a thing of the past, the w3
validator warns about these slashes.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
1 files changed, 5 insertions(+), 5 deletions(-)

M post_fmt3_cmds.c
M post_fmt3_cmds.c +5 -5
@@ 1,5 1,5 @@ 
 /*
- * Copyright (c) 2013-2018 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
+ * Copyright (c) 2013-2018,2022 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal

          
@@ 80,7 80,7 @@ static struct str *__process_img(struct 
 				 struct str *opt)
 {
 	return str_cat(5, STATIC_STR("<img src=\""), txt, STATIC_STR("\" alt=\""),
-		       opt, STATIC_STR("\" />"));
+		       opt, STATIC_STR("\">"));
 }
 
 static struct str *__process_photo(struct parser_output *data, struct str *txt,

          
@@ 90,7 90,7 @@ static struct str *__process_photo(struc
 		       str_getref(config.photo_base_url),
 		       STATIC_STR("/"),
 		       txt,
-		       STATIC_STR("\" alt=\""), opt, STATIC_STR("\" />"));
+		       STATIC_STR("\" alt=\""), opt, STATIC_STR("\">"));
 }
 
 static struct str *__process_emph(struct parser_output *data, struct str *txt,

          
@@ 269,7 269,7 @@ static struct str *__process_wiki(struct
 		       txt,
 		       STATIC_STR("\"><img src=\""),
 		       str_getref(config.base_url),
-		       STATIC_STR("/wiki.png\" alt=\"Wikipedia article:\" />&nbsp;"),
+		       STATIC_STR("/wiki.png\" alt=\"Wikipedia article:\">&nbsp;"),
 		       opt ? opt : txt, STATIC_STR("</a>"));
 }
 

          
@@ 284,7 284,7 @@ static struct str *__process_bug(struct 
 		       txt,
 		       STATIC_STR("\"><img src=\""),
 		       str_getref(config.base_url),
-		       STATIC_STR("/bug.png\" alt=\"bug #\" />&nbsp;"),
+		       STATIC_STR("/bug.png\" alt=\"bug #\">&nbsp;"),
 		       txt, STATIC_STR("</a>"));
 }