# EOL characters weirdness

**URL:** <https://talk.commonmark.org/t/eol-characters-weirdness/2053>\
**Category:** Implementation\
**Created:** [March 24, 2016, 2:45pm UTC](https://talk.commonmark.org/t/eol-characters-weirdness/2053 "2016-03-24T14:45:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvalle](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/mvalle/32/932_2.png) [@mvalle](https://talk.commonmark.org/u/mvalle)\
**Post date:** [March 24, 2016, 2:45pm UTC](https://talk.commonmark.org/t/eol-characters-weirdness/2053/1 "2016-03-24T14:45:15Z")

</div>

I have a .md file with CRLF end of line, except one line that ends with a CR only. This line is followed by an empty line, that is CRLF only, to signal the paragraph end.  
The file is [here](https://dl.dropboxusercontent.com/u/2571325/eol.md)

The CR is interpreted as softbreak, that’s OK, but the parser don’t see the following end of paragraph and joins the two paragraphs together.

Currently I call the parser with the following options: `CMARK_OPT_NORMALIZE | CMARK_OPT_VALIDATE_UTF8 | CMARK_OPT_SMART`  
Seems this happens even if I add `CMARK_OPT_HARDBREAKS` or remove `CMARK_OPT_NORMALIZE`.

The spec says (pag. 4) that a CR alone is a valid line end, so I don’t understand where the following CRLF is gone.

The fix is trivial, simply edit the file changing the guilty EOL, but who knows where in the heap of files lurks another lone CR.

Thanks for looking!  
mario

---

<div class="post-metadata">

**Author:** ![jgm](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/jgm/32/1360_2.png) [@jgm](https://talk.commonmark.org/u/jgm)\
**Post date:** [March 24, 2016, 4:22pm UTC](https://talk.commonmark.org/t/eol-characters-weirdness/2053/2 "2016-03-24T16:22:27Z")

</div>

Fixed now in the dev version. Thanks for the report!

---

<div class="post-metadata">

**Author:** ![mvalle](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/mvalle/32/932_2.png) [@mvalle](https://talk.commonmark.org/u/mvalle)\
**Post date:** [March 26, 2016, 6:01am UTC](https://talk.commonmark.org/t/eol-characters-weirdness/2053/3 "2016-03-26T06:01:07Z")

</div>

OK, done. BTW it happens also with the latest cmark 0.25.1  
Thanks!  
mario
