# HG changeset patch # User Josef 'Jeff' Sipek # Date 1666100032 14400 # Tue Oct 18 09:33:52 2022 -0400 # Node ID ad6be99899053a7c31a97c3c5fa317517f47074b # Parent d7d02efb7a9f54dd1e02ae532b146d20cc925fd4 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 diff --git a/post_fmt3_cmds.c b/post_fmt3_cmds.c --- a/post_fmt3_cmds.c +++ b/post_fmt3_cmds.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2018 Josef 'Jeff' Sipek + * Copyright (c) 2013-2018,2022 Josef 'Jeff' Sipek * * 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("\""),")); + 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("\">\"Wikipedia "), + STATIC_STR("/wiki.png\" alt=\"Wikipedia article:\"> "), opt ? opt : txt, STATIC_STR("")); } @@ -284,7 +284,7 @@ txt, STATIC_STR("\">\"bug "), + STATIC_STR("/bug.png\" alt=\"bug #\"> "), txt, STATIC_STR("")); }