summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/html.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/html.c b/src/html.c
index 1b93a97..fae9dca 100644
--- a/src/html.c
+++ b/src/html.c
@@ -538,8 +538,8 @@ mq_html_form(const gchar *submit_label, const gchar *reset_label, ...)
gchar *
mq_html_input_text(const gchar *name, const gchar *label, const gchar *value)
{
- return g_strdup_printf("<label for=\"%s\"><span>%s</span>"
- "<input type=\"text\" name=\"%s\" id=\"%s\" value=\"%s\">"
+ return g_strdup_printf("<label for=\"%s\">\n<span>%s</span>\n"
+ "<input type=\"text\" name=\"%s\" id=\"%s\" value=\"%s\">\n"
"</label>\n",
name, label, name, name, value ? value : "");
}
@@ -548,9 +548,9 @@ gchar *
mq_html_input_number_i(const gchar *name, const gchar *label,
gint min, gint step, gint max, gint value)
{
- return g_strdup_printf("<label for=\"%s\"><span>%s</span>"
+ return g_strdup_printf("<label for=\"%s\">\n<span>%s</span>\n"
"<input type=\"number\" name=\"%s\" id=\"%s\""
- " min=\"%d\" step=\"%d\" max=\"%d\" value=\"%d\">"
+ " min=\"%d\" step=\"%d\" max=\"%d\" value=\"%d\">\n"
"</label>\n",
name, label, name, name, min, step, max, value);
}
@@ -559,9 +559,9 @@ gchar *
mq_html_input_number_d(const gchar *name, const gchar *label,
gdouble min, gdouble step, gdouble max, gdouble value)
{
- return g_strdup_printf("<label for=\"%s\"><span>%s</span>"
+ return g_strdup_printf("<label for=\"%s\">\n<span>%s</span>\n"
"<input type=\"number\" name=\"%s\" id=\"%s\""
- " min=\"%f\" step=\"%f\" max=\"%f\" value=\"%f\">"
+ " min=\"%f\" step=\"%f\" max=\"%f\" value=\"%f\">\n"
"</label>\n",
name, label, name, name, min, step, max, value);
}
@@ -569,8 +569,8 @@ mq_html_input_number_d(const gchar *name, const gchar *label,
gchar *
mq_html_input_radio(const gchar *name, const gchar *label, gboolean checked)
{
- return g_strdup_printf("<label for=\"%s\"><span>%s</span>"
- "<input type=\"radio\" name=\"%s\" id=\"%s\"%s></label>\n",
+ return g_strdup_printf("<label for=\"%s\">\n<span>%s</span>\n"
+ "<input type=\"radio\" name=\"%s\" id=\"%s\"%s>\n</label>\n",
name, label, name, name, checked ? " checked=\"checked\"" : "");
}
@@ -598,9 +598,9 @@ mq_html_input_checkbox(const gchar *name, const gchar *label, gboolean checked)
* <input> when the former <input> is checked.
*/
- return g_strdup_printf("<label for=\"%s\"><span>%s</span>"
- "<input type=\"hidden\" name=\"%s\" value=\"off\">"
- "<input type=\"checkbox\" name=\"%s\" id=\"%s\"%s></label>\n",
+ return g_strdup_printf("<label for=\"%s\">\n<span>%s</span>\n"
+ "<input type=\"hidden\" name=\"%s\" value=\"off\">\n"
+ "<input type=\"checkbox\" name=\"%s\" id=\"%s\"%s>\n</label>\n",
name, label, name, name, name,
checked ? " checked=\"checked\"" : "");
}