summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-11-22 14:40:16 +0100
committerdefault <nobody@localhost>2023-11-22 14:40:16 +0100
commit1466331abee11962e1d923d0a1017f5eed1fa5de (patch)
tree7560d74981993e3db427002aba4eba9ff91c1917
parentb6603380b49709ef8f738ae3c5274a4bcb099dde (diff)
Minor xs_html tweaks.
-rw-r--r--html.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/html.c b/html.c
index 541e920..8bac8dd 100644
--- a/html.c
+++ b/html.c
@@ -1807,7 +1807,7 @@ xs_str *html_people_list(snac *snac, xs_str *os, xs_list *list, const char *head
xs_html_tag("details",
xs_html_tag("summary",
xs_html_text(L("Direct Message..."))),
- xs_html_sctag("p", NULL),
+ xs_html_tag("p", NULL),
xs_html_tag("div",
xs_html_attr("class", "snac-note"),
xs_html_attr("id", dm_div_id),
@@ -1829,11 +1829,11 @@ xs_str *html_people_list(snac *snac, xs_str *os, xs_list *list, const char *head
xs_html_attr("type", "hidden"),
xs_html_attr("name", "to"),
xs_html_attr("value", actor_id)),
- xs_html_sctag("p", NULL),
+ xs_html_tag("p", NULL),
xs_html_tag("details",
xs_html_tag("summary",
xs_html_text(L("Attachment..."))),
- xs_html_sctag("p", NULL),
+ xs_html_tag("p", NULL),
xs_html_sctag("input",
xs_html_attr("type", "file"),
xs_html_attr("name", "attach")),
@@ -1841,20 +1841,20 @@ xs_str *html_people_list(snac *snac, xs_str *os, xs_list *list, const char *head
xs_html_attr("type", "text"),
xs_html_attr("name", "alt_text"),
xs_html_attr("placeholder", L("Attachment description")))),
- xs_html_sctag("p", NULL),
+ xs_html_tag("p", NULL),
xs_html_sctag("input",
xs_html_attr("type", "submit"),
xs_html_attr("class", "button"),
xs_html_attr("value", L("Post")))),
- xs_html_sctag("p", NULL))),
- xs_html_sctag("p", NULL));
+ xs_html_tag("p", NULL))),
+ xs_html_tag("p", NULL));
xs_html_add(snac_controls, dm_textarea);
xs_html_add(snac_post, snac_controls);
{
- xs *s1 = xs_html_render(snac_post);
+ xs *s1 = xs_html_render_s(snac_post, xs_dup("\n"));
s = xs_str_cat(s, s1);
}
}