summaryrefslogtreecommitdiff
path: root/src/inlines.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2014-09-02 13:18:04 +0200
committerVicent Marti <tanoku@gmail.com>2014-09-09 03:39:15 +0200
commit582674e662d1f8757350c51486a5e0a837195e15 (patch)
tree1d56c46f850d441492500dc2c3983e469c1b3581 /src/inlines.c
parente216094e2192c05ddbd0988458eb8c0012e7baf8 (diff)
ffffix
Diffstat (limited to 'src/inlines.c')
-rw-r--r--src/inlines.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/inlines.c b/src/inlines.c
index 4ff45ad..82c7219 100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -6,9 +6,7 @@
#include "stmd.h"
#include "uthash.h"
-#include "debug.h"
#include "scanners.h"
-#include "utf8.h"
typedef struct Subject {
const gh_buf *buffer;
@@ -119,7 +117,7 @@ inline static inl* make_linkable(int t, inl* label, chunk url, chunk title)
e->tag = t;
e->content.linkable.label = label;
e->content.linkable.url = chunk_to_cstr(&url);
- e->content.linkable.title = chunk_to_cstr(&title);
+ e->content.linkable.title = url.len ? chunk_to_cstr(&title) : NULL;
e->next = NULL;
return e;
}