From 75a5bdedbe3299b4a8d58239fd6d4ddaf52c8e5b Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 29 Mar 2024 16:32:04 +0100 Subject: 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.) --- src/config/mailcap.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'src/config/mailcap.nim') 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: -- cgit 1.4.1-2-gfad0