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

CRLF line endings cause error #19

Description

@Aldaviva
  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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions