about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-29 16:32:04 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-29 16:57:16 +0100
commit75a5bdedbe3299b4a8d58239fd6d4ddaf52c8e5b (patch)
treeb2ac338e388eb4df165fd0332e3489f388c0a82d /src/config
parent9053a9096bfe7845b712989ebfa3b9cba28cd3d5 (diff)
downloadchawan-75a5bdedbe3299b4a8d58239fd6d4ddaf52c8e5b.tar.gz
ansi2html: support passing titles
Use content type attributes so e.g. git.cgi can set the title even with
a text/x-ansi content type.

(This commit also fixes some bugs in content type attribute handling.)
Diffstat (limited to 'src/config')
-rw-r--r--src/config/mailcap.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config/mailcap.nim b/src/config/mailcap.nim
index b108ca20..41575ca8 100644
--- a/src/config/mailcap.nim
+++ b/src/config/mailcap.nim
@@ -308,6 +308,7 @@ proc unquoteCommand*(ecmd, contentType, outpath: string; url: URL;
         let s = contentType.getContentTypeAttr(attrname)
         cmd &= quoteFile(s, qs)
         attrname = ""
+        state = STATE_NORMAL
       elif c == '\\':
         state = STATE_ATTR_QUOTED
       else: