- Commit
- fb7af2f0d6ca845b33364c6ce9a704a458e31ff9
- Parent
- ea343e83b173fd7c4a9dc9762a6502d788e65313
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Small code simplification in inlines.c.
Use S_is_line_end_char.
My personal build of CMark ✏️
Small code simplification in inlines.c.
Use S_is_line_end_char.
1 file changed, 1 insertion, 2 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/inlines.c | 3 | 1 | 2 |
diff --git 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); }