diff options
author | default <nobody@localhost> | 2023-01-13 07:02:04 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-01-13 07:02:04 +0100 |
commit | e58eb068fb59ed908dd6630b41e9c6747f04fbd5 (patch) | |
tree | 4d8139015ff6ca9860231e8d53fb8794f3fe0f0f /format.c | |
parent | 964b11e197a13c7fb17371bd1e63f26bc0f682e3 (diff) |
Minor URL formatting tweaks.
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -71,7 +71,8 @@ static d_char *format_line(const char *line) } else if (xs_startswith(v, "http")) { - xs *s1 = xs_fmt("<a href=\"%s\" target=\"_blank\">%s</a>", v, v); + xs *v2 = xs_strip_chars_i(xs_dup(v), "."); + xs *s1 = xs_fmt("<a href=\"%s\" target=\"_blank\">%s</a>", v2, v); s = xs_str_cat(s, s1); } else |