diff options
author | default <nobody@localhost> | 2023-12-03 11:43:40 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-12-03 11:43:40 +0100 |
commit | 8b3471afb7adf38d31d7ee5220be0930960330aa (patch) | |
tree | 1490d399b14f5c0592b1a0ddfa30a23d85828257 /html.c | |
parent | f1afe4416dabfbba1e34b4c82742dbc76cab0194 (diff) |
Backport from xs.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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")); } |