From 86945e9ab330160562ca194bc0d845d84ca97062 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 04 Nov 2017 12:49:02 -0400 Subject: mq_html_form(): Split button box code and strings --- diff --git a/src/utils/html.c b/src/utils/html.c index d377046..c1075e8 100644 --- a/src/utils/html.c +++ b/src/utils/html.c @@ -580,11 +580,15 @@ mq_html_form(const gchar *submit_label, const gchar *reset_label, ...) len += strlen(child); } va_end(ap); - len += strlen("
\n") + - strlen("\n\n
\n") + - strlen("\n"); + len += strlen("
\n"); + len += strlen("\n"); + len += strlen("\n"); + len += strlen("
\n"); + len += strlen("\n"); ++len; /* NUL byte */ /* Build string. */ @@ -599,9 +603,11 @@ mq_html_form(const gchar *submit_label, const gchar *reset_label, ...) ptr = g_stpcpy(ptr, "
\n"); ptr = g_stpcpy(ptr, "\n\n"); + ptr = g_stpcpy(ptr, "\n
\n"); + ptr = g_stpcpy(ptr, "\">\n"); + ptr = g_stpcpy(ptr, "\n"); ptr = g_stpcpy(ptr, "\n"); /* g_stpcpy() adds the NUL. */ return form; -- cgit v0.9.1