Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

CRLF line endings cause error #19

Open
Aldaviva opened this issue Feb 13, 2013 · 0 comments
Open

CRLF line endings cause error #19

Aldaviva opened this issue Feb 13, 2013 · 0 comments

Comments

@Aldaviva
Copy link

  1. Create a markdown document api.restdown with CRLF line endings.
  2. $ restdown api.restdown
  3. restdown returns restdown: error: need more than 1 value to unpack (/opt/restdown/bin/restdown:205 in restdown_path)
  4. Convert CRLF to LF using $ dos2unix api.restdown
  5. $ restdown api.restdown
  6. HTML and JSON are successfully generated.

I know the easy way to fix this is to never use CRLF, but it would be helpful to either handle this case automatically, or at least return a more specific error message to the user so they know to reconfigure their editor or run dos2unix.

I have since forced my editor to use LF for all new files.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant