In a recent note, Thomas Dickey said:
> Date: Fri, 7 May 2004 19:01:32 -0400 (EDT)
>
> On Fri, 7 May 2004 [EMAIL PROTECTED] wrote:
>
> > How does Lynx select the suffix of the workfile?
>
> There are only a few choices (".bin", ".txt" and ".html" or ".htm").
> That's done in src/HTFWriter.c in HTSaveAndExecute(), based on the
> mime type. Reading and comparing with the mailcap on this machine,
> it looks as if it might be useful to use the nametemplate value if
> it exists (making a note to look into that...).
>
Well, I took the lazy route. Experimenting, I observed that HTFileSuffix()
resolves to a useful suffix if it gets a chance, so I just let
Content-type: application/pdf fall through to there.
Thanks,
gil
--
StorageTek
INFORMATION made POWERFUL
%%% Created Sun May 9 10:57:57 MDT 2004 by target lynx.patch. %%%
diff -bru orig/lynx2-8-6/src/HTFWriter.c lynx2-8-6/src/HTFWriter.c
--- orig/lynx2-8-6/src/HTFWriter.c Tue Apr 27 14:06:18 2004
+++ lynx2-8-6/src/HTFWriter.c Sun May 9 10:47:18 2004
@@ -738,7 +738,8 @@
suffix = HTML_SUFFIX;
} else if (!strncasecomp(pres->rep->name, "text/", 5)) {
suffix = TEXT_SUFFIX;
- } else if (!strncasecomp(pres->rep->name, "application/", 12)) {
+ } else if (!strncasecomp(pres->rep->name, "application/", 12)
+ && strncasecomp(pres->rep->name, "application/pdf", 15) ) {
suffix = BIN_SUFFIX;
} else if ((suffix = HTFileSuffix(pres->rep,
anchor->content_encoding)) == 0
_______________________________________________
Lynx-dev mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lynx-dev