Skip to content

Ignoring an empty line when the parser is able to parse it but I don't want it to. #266

Answered by mbrandonw
oliverfoggin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @oliverfoggin, for the row parser I think you want Many(minimum: 1), that way it fails on the last line, leaving it unconsumed. Then you can finish it off with a terminator parser that consumes all trailing whitespace. Want to give that a shot and let me know if it works?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@oliverfoggin
Comment options

@mbrandonw
Comment options

@oliverfoggin
Comment options

Answer selected by oliverfoggin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants