aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/blocks.c1
-rw-r--r--src/inlines.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/blocks.c b/src/blocks.c
index 94ff986..bd25d6c 100644
--- a/src/blocks.c
+++ b/src/blocks.c
@@ -57,6 +57,7 @@ bool is_blank(gh_buf *s, int offset)
return true;
case ' ':
offset++;
+ break;
default:
return false;
}
diff --git a/src/inlines.c b/src/inlines.c
index ef27a24..ced4673 100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -123,7 +123,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 = url.len ? chunk_to_cstr(&title) : NULL;
+ e->content.linkable.title = title.len ? chunk_to_cstr(&title) : NULL;
e->next = NULL;
return e;
}