summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}