Wrapped too long string literals.

This commit is contained in:
default 2022-12-08 07:21:19 +01:00
parent 4159e41440
commit a5b8dd7841

6
html.c
View file

@ -84,7 +84,8 @@ d_char *html_actor_icon(snac *snac, d_char *os, char *actor, char *date, char *u
avatar = xs_fmt("data:image/png;base64, %s", susie); avatar = xs_fmt("data:image/png;base64, %s", susie);
{ {
xs *s1 = xs_fmt("<p><img class=\"snac-avatar\" src=\"%s\" alt=\"\" loading=\"lazy\"/>\n", avatar); xs *s1 = xs_fmt("<p><img class=\"snac-avatar\" src=\"%s\" alt=\"\" "
"loading=\"lazy\"/>\n", avatar);
s = xs_str_cat(s, s1); s = xs_str_cat(s, s1);
} }
@ -675,7 +676,8 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, int
if (n && i) { if (n && i) {
char *u = xs_dict_get(i, "url"); char *u = xs_dict_get(i, "url");
xs *img = xs_fmt("<img src=\"%s\" style=\"height: 1em\" loading=\"lazy\"/>", u); xs *img = xs_fmt("<img src=\"%s\" style=\"height: 1em\" "
"loading=\"lazy\"/>", u);
c = xs_replace_i(c, n, img); c = xs_replace_i(c, n, img);
} }