preaction / Statocles

Static website CMS
http://preaction.me/statocles
Other
84 stars 33 forks source link

Support content sections on systems with line endings other than \n #568

Closed wbazant closed 6 years ago

wbazant commented 6 years ago

I use a Mac. I tried to an old markdown file that I created on Windows, it didn't have content sections working, and I wanted my post to be a short summary with "read more". I figured it out by accident - when using statocles blog post < windows_file.markdown and opening the file showed me various ^M characters. I then searched the codebase for where it might split on "---", and found this regex: the change from \n to \R fixed the issue.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 92.162% when pulling a79590d1600ebcbc3d2909d83c49693168d6c0f5 on wbazant:master into a223b2a44773f4ab41ae79656447b4acbe2c5e31 on preaction:master.

preaction commented 6 years ago

Okay, this looks good. Thanks!