From 8b3471afb7adf38d31d7ee5220be0930960330aa Mon Sep 17 00:00:00 2001 From: default Date: Sun, 3 Dec 2023 11:43:40 +0100 Subject: Backport from xs. --- html.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index 3ad3689..ff25acf 100644 --- a/html.c +++ b/html.c @@ -999,12 +999,15 @@ static xs_html *html_button(char *clss, char *label, char *hint) { xs *c = xs_fmt("snac-btn-%s", clss); - return xs_html_sctag("input", - xs_html_attr("type", "submit"), - xs_html_attr("name", "action"), - xs_html_attr("class", c), - xs_html_attr("value", label), - xs_html_attr("title", hint)); + /* use an NULL tag to separate non-css-classed buttons from one another */ + return xs_html_tag(NULL, + xs_html_sctag("input", + xs_html_attr("type", "submit"), + xs_html_attr("name", "action"), + xs_html_attr("class", c), + xs_html_attr("value", label), + xs_html_attr("title", hint)), + xs_html_text("\n")); } -- cgit v1.2.3