commit fab8b57

default  ·  2023-11-27 13:00:21 +0000 UTC
parent 72acd8f
More minor HTML tweaks.
1 files changed,  +30, -29
M html.c
M html.c
+30, -29
 1@@ -337,35 +337,36 @@ xs_html *html_note(snac *user, char *summary,
 2                 xs_html_tag("summary",
 3                     xs_html_text(L("Poll..."))),
 4                 xs_html_tag("p",
 5-                    xs_html_text(L("Poll options (one per line, up to 8):"))),
 6-                xs_html_tag("textarea",
 7-                    xs_html_attr("class",    "snac-textarea"),
 8-                    xs_html_attr("name",     "poll_options"),
 9-                    xs_html_attr("rows",     "4"),
10-                    xs_html_attr("wrap",     "virtual"),
11-                    xs_html_attr("placeholder", "Option 1...\nOption 2...\nOption 3...\n...")),
12-                xs_html_tag("p", NULL),
13-                xs_html_tag("select",
14-                    xs_html_attr("name",    "poll_multiple"),
15-                    xs_html_tag("option",
16-                        xs_html_attr("value", "off"),
17-                        xs_html_text(L("One choice"))),
18-                    xs_html_tag("option",
19-                        xs_html_attr("value", "on"),
20-                        xs_html_text(L("Multiple choices")))),
21-                xs_html_text(" "),
22-                xs_html_tag("select",
23-                    xs_html_attr("name",    "poll_end_secs"),
24-                    xs_html_tag("option",
25-                        xs_html_attr("value", "300"),
26-                        xs_html_text(L("End in 5 minutes"))),
27-                    xs_html_tag("option",
28-                        xs_html_attr("value", "3600"),
29-                        xs_html_attr("selected", NULL),
30-                        xs_html_text(L("End in 1 hour"))),
31-                    xs_html_tag("option",
32-                        xs_html_attr("value", "86400"),
33-                        xs_html_text(L("End in 1 day"))))));
34+                    xs_html_text(L("Poll options (one per line, up to 8):")),
35+                    xs_html_sctag("br", NULL),
36+                    xs_html_tag("textarea",
37+                        xs_html_attr("class",    "snac-textarea"),
38+                        xs_html_attr("name",     "poll_options"),
39+                        xs_html_attr("rows",     "4"),
40+                        xs_html_attr("wrap",     "virtual"),
41+                        xs_html_attr("placeholder", "Option 1...\nOption 2...\nOption 3...\n...")),
42+                    xs_html_tag("p", NULL),
43+                    xs_html_tag("select",
44+                        xs_html_attr("name",    "poll_multiple"),
45+                        xs_html_tag("option",
46+                            xs_html_attr("value", "off"),
47+                            xs_html_text(L("One choice"))),
48+                        xs_html_tag("option",
49+                            xs_html_attr("value", "on"),
50+                            xs_html_text(L("Multiple choices")))),
51+                    xs_html_text(" "),
52+                    xs_html_tag("select",
53+                        xs_html_attr("name",    "poll_end_secs"),
54+                        xs_html_tag("option",
55+                            xs_html_attr("value", "300"),
56+                            xs_html_text(L("End in 5 minutes"))),
57+                        xs_html_tag("option",
58+                            xs_html_attr("value", "3600"),
59+                            xs_html_attr("selected", NULL),
60+                            xs_html_text(L("End in 1 hour"))),
61+                        xs_html_tag("option",
62+                            xs_html_attr("value", "86400"),
63+                            xs_html_text(L("End in 1 day")))))));
64     }
65 
66     xs_html_add(form,