summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-16 20:54:11 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-16 20:54:11 -0700
commitfb7af2f0d6ca845b33364c6ce9a704a458e31ff9 (patch)
tree0298b51f586869cd6f36b439b3e6f97e4174511e
parentea343e83b173fd7c4a9dc9762a6502d788e65313 (diff)
Small code simplification in inlines.c.
Use S_is_line_end_char.
-rw-r--r--src/inlines.c3
1 files changed, 1 insertions, 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);
}