Skip to content

Doesn't read any line ending (CR, LF, or CR/LF) #3

@TroikaTronix

Description

@TroikaTronix

Because your code uses the std::getline function to get the text, it does not accept line endings except those recognized by the current platform. This Stack Overflow article gives a nifty replacement for getline that recognizes all line endings. I suggest adding this would be a good addition to your excellent parser.

https://stackoverflow.com/questions/6089231/getting-std-ifstream-to-handle-lf-cr-and-crlf

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