summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-12-03 11:43:40 +0100
committerdefault <nobody@localhost>2023-12-03 11:43:40 +0100
commit8b3471afb7adf38d31d7ee5220be0930960330aa (patch)
tree1490d399b14f5c0592b1a0ddfa30a23d85828257 /html.c
parentf1afe4416dabfbba1e34b4c82742dbc76cab0194 (diff)
Backport from xs.
Diffstat (limited to 'html.c')
-rw-r--r--html.c15
1 files changed, 9 insertions, 6 deletions
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"));
}