diff options
author | Vicent Marti <tanoku@gmail.com> | 2014-09-04 17:49:13 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2014-09-09 03:39:15 +0200 |
commit | d8f44f1e4f0bd944ab43e6434a1579d670ed66cf (patch) | |
tree | ab2239dafd7127d545f27f65e7389d2427569fc0 /src/print.c | |
parent | 9830d3a05a374a0d05676301bd4065917b59ad53 (diff) |
433/8
Diffstat (limited to 'src/print.c')
-rw-r--r-- | src/print.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c index c262995..832ad4f 100644 --- a/src/print.c +++ b/src/print.c @@ -153,7 +153,10 @@ extern void print_inlines(inl* ils, int indent) case INL_LINK: case INL_IMAGE: printf("%s url=", ils->tag == INL_LINK ? "link" : "image"); - print_str(ils->content.linkable.url, -1); + + if (ils->content.linkable.url) + print_str(ils->content.linkable.url, -1); + if (ils->content.linkable.title) { printf(" title="); print_str(ils->content.linkable.title, -1); |