diff options
author | bptato <nincsnevem662@gmail.com> | 2023-08-26 15:19:45 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-08-26 15:19:45 +0200 |
commit | e0950d5f6eed46509246b4820ac478a5920354da (patch) | |
tree | 147fcc467a81fd3db55e51abbca3c3fe5e9e3fca | |
parent | 2de2e74b954919883178d46ee7ec63fbb1951b58 (diff) | |
download | chawan-e0950d5f6eed46509246b4820ac478a5920354da.tar.gz |
mailcap: fix newline parsing
skipBlanks should not consume newlines.
-rw-r--r-- | src/config/mailcap.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/mailcap.nim b/src/config/mailcap.nim index 8c2a8853..43a0a2a5 100644 --- a/src/config/mailcap.nim +++ b/src/config/mailcap.nim @@ -56,7 +56,7 @@ proc reconsume(state: var MailcapParser, c: char) = proc skipBlanks(state: var MailcapParser, c: var char): bool = while state.has(): c = state.consume() - if c notin AsciiWhitespace: + if c notin AsciiWhitespace - {'\n'}: return true proc skipBlanks(state: var MailcapParser) = |