Mercurial > blahgd > experimental
changeset 1073:ad6be9989905
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>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Tue, 18 Oct 2022 09:33:52 -0400 |
parents | d7d02efb7a9f |
children | fd4337f68e43 |
files | post_fmt3_cmds.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/post_fmt3_cmds.c Tue Oct 18 09:31:47 2022 -0400 +++ b/post_fmt3_cmds.c Tue Oct 18 09:33:52 2022 -0400 @@ -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 @@ 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 @@ 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 @@ txt, STATIC_STR("\"><img src=\""), str_getref(config.base_url), - STATIC_STR("/wiki.png\" alt=\"Wikipedia article:\" /> "), + STATIC_STR("/wiki.png\" alt=\"Wikipedia article:\"> "), opt ? opt : txt, STATIC_STR("</a>")); } @@ -284,7 +284,7 @@ txt, STATIC_STR("\"><img src=\""), str_getref(config.base_url), - STATIC_STR("/bug.png\" alt=\"bug #\" /> "), + STATIC_STR("/bug.png\" alt=\"bug #\"> "), txt, STATIC_STR("</a>")); }