diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-03-26 12:48:22 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-03-26 12:49:05 -0700 |
commit | 359fb5b47365abaebb1b76ae52aeb27efdd39ae7 (patch) | |
tree | fa89d485bc308fd4bf812de8da0adf7087b072af /src/parser.h | |
parent | 7cb92c313c31fc808dded8f476f956447e912fe3 (diff) |
Handle buffer split across a CRLF line ending (closes #117).
Adds an internal field to the parser struct to keep track
of last_buffer_ended_with_cr.
Diffstat (limited to 'src/parser.h')
-rw-r--r-- | src/parser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h index b3ff39b..ab21d0f 100644 --- a/src/parser.h +++ b/src/parser.h @@ -27,6 +27,7 @@ struct cmark_parser { bufsize_t last_line_length; cmark_strbuf *linebuf; int options; + bool last_buffer_ended_with_cr; }; #ifdef __cplusplus |