From 0f7233e073a32c15bdde476edcd04b6d395278b4 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 11 Jun 2015 14:34:24 -0700 Subject: Removed "add newline if line doesn't have one." This isn't actually needed. --- src/blocks.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/blocks.c') diff --git a/src/blocks.c b/src/blocks.c index a3ac712..2a68f75 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -582,13 +582,6 @@ S_process_line(cmark_parser *parser, const unsigned char *buffer, bufsize_t byte parser->offset = 0; parser->blank = false; - // Add a newline to the end if not present: - // TODO this breaks abstraction: - if (parser->curline->size > 0 && - !S_is_line_end_char(parser->curline->ptr[parser->curline->size - 1])) { - cmark_strbuf_putc(parser->curline, '\n'); - } - input.data = parser->curline->ptr; input.len = parser->curline->size; -- cgit v1.2.3