From fb7af2f0d6ca845b33364c6ce9a704a458e31ff9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 16 Jun 2015 20:54:11 -0700 Subject: Small code simplification in inlines.c. Use S_is_line_end_char. --- src/inlines.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/inlines.c b/src/inlines.c index f41a62a..b43f774 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -1108,8 +1108,7 @@ static int parse_inline(subject* subj, cmark_node * parent, int options) subj->pos = endpos; // if we're at a newline, strip trailing spaces. - if (peek_char(subj) == '\r' || - peek_char(subj) == '\n') { + if (S_is_line_end_char(peek_char(subj))) { cmark_chunk_rtrim(&contents); } -- cgit v1.2.3