summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-11 14:34:24 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-11 14:34:24 -0700
commit0f7233e073a32c15bdde476edcd04b6d395278b4 (patch)
tree381aa6afea1685deb870ed7e5899b063b276cb96 /src
parentab5666eae00102f0ea7753f6c449e9778b14287b (diff)
Removed "add newline if line doesn't have one."
This isn't actually needed.
Diffstat (limited to 'src')
-rw-r--r--src/blocks.c7
1 files changed, 0 insertions, 7 deletions
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;