mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Wrapped too long string literals.
This commit is contained in:
parent
4159e41440
commit
a5b8dd7841
1 changed files with 4 additions and 2 deletions
6
html.c
6
html.c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue