diff options
author | bptato <nincsnevem662@gmail.com> | 2023-09-13 18:29:29 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-09-13 18:29:29 +0200 |
commit | 31aa24d204d50acf26746408364b7741303d62a8 (patch) | |
tree | a6eb5441b2f8b3c9e0ffe274b69653fa59c35c02 /src/display | |
parent | 6526bdf6ee36be887cce783a58cc57c898a4425d (diff) | |
download | chawan-31aa24d204d50acf26746408364b7741303d62a8.tar.gz |
Do not use mailcap for text/plain
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/pager.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/display/pager.nim b/src/display/pager.nim index 438f8763..5c6d1852 100644 --- a/src/display/pager.nim +++ b/src/display/pager.nim @@ -1033,6 +1033,11 @@ proc checkMailcap(pager: Pager, container: Container): (EmptyPromise, bool) = # We support HTML natively, so it would make little sense to execute # mailcap filters for it. return (nil, true) + elif contentType == "text/plain": + # This could potentially be useful. Unfortunately, many mailcaps include + # a text/plain entry with less by default, so it's probably better to + # ignore this. + return (nil, true) #TODO callback for outpath or something let url = container.location let cs = container.source.charset |