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

CRLF normalization #91

@eight04

Description

@eight04

I was trying to make docstring a separate file, however I noticed that neodoc can't handle \r character, which means you can't save the doc with Windows CRLF.

Failed to parse specification:
Expected Program name

This is an error with the program itself and not your fault.
Please bring this to the program author's attention.

We have to add some normalization.

var doc = fs.readFileSync(...).replace(/\r\n?/g, "\n");

Should this behavior be built-in to neodoc or just leave it to the application (then we might need a better error message)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions