aboutsummaryrefslogtreecommitdiff
path: root/src/html/html.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2014-09-04 17:42:12 +0200
committerVicent Marti <tanoku@gmail.com>2014-09-09 03:39:15 +0200
commit9830d3a05a374a0d05676301bd4065917b59ad53 (patch)
treec847941aa3471be70e8261eff34e8609d4f43114 /src/html/html.c
parent45c1d9fadb3e8aab4a01bb27a4e2ece379902d1a (diff)
430/11
Diffstat (limited to 'src/html/html.c')
-rw-r--r--src/html/html.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/html/html.c b/src/html/html.c
index cdccf2a..913a602 100644
--- a/src/html/html.c
+++ b/src/html/html.c
@@ -191,10 +191,9 @@ void inlines_to_html(gh_buf *html, inl* ils)
escape_href(html, ils->content.linkable.url, -1);
inlines_to_html(&scrap, ils->content.inlines);
- if (scrap.size) {
- gh_buf_puts(html, "\" alt=\"");
+ gh_buf_puts(html, "\" alt=\"");
+ if (scrap.size)
escape_html(html, scrap.ptr, scrap.size);
- }
gh_buf_clear(&scrap);
if (ils->content.linkable.title) {