about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-08-26 15:19:45 +0200
committerbptato <nincsnevem662@gmail.com>2023-08-26 15:19:45 +0200
commite0950d5f6eed46509246b4820ac478a5920354da (patch)
tree147fcc467a81fd3db55e51abbca3c3fe5e9e3fca /src
parent2de2e74b954919883178d46ee7ec63fbb1951b58 (diff)
downloadchawan-e0950d5f6eed46509246b4820ac478a5920354da.tar.gz
mailcap: fix newline parsing
skipBlanks should not consume newlines.
Diffstat (limited to 'src')
-rw-r--r--src/config/mailcap.nim2
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) =