summaryrefslogtreecommitdiff
path: root/src/inlines.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-15 12:09:21 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-16 17:48:06 -0700
commitbaf5d11e04dc93ae12127faa727daeb5d0b6a63e (patch)
tree7946dbb96ab54bee1e883133b5f05891d24974c0 /src/inlines.c
parent7bedf7d6b7dfae9681ac5d2c1631eb92d0c68e55 (diff)
skip_spaces: skip tabs too.
Diffstat (limited to 'src/inlines.c')
-rw-r--r--src/inlines.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inlines.c b/src/inlines.c
index c5b72ba..f41a62a 100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -199,7 +199,7 @@ static inline bool
skip_spaces(subject *subj)
{
bool skipped = false;
- while (peek_char(subj) == ' ') {
+ while (peek_char(subj) == ' ' || peek_char(subj) == '\t') {
advance(subj);
skipped = true;
}
@@ -1192,6 +1192,7 @@ bufsize_t cmark_parse_reference_inline(cmark_strbuf *input, cmark_reference_map
subj.pos = beforetitle;
title = cmark_chunk_literal("");
}
+
// parse final spaces and newline:
skip_spaces(&subj);
if (!skip_line_end(&subj)) {