With an old version of lynx, I was using lynxexec commands such as:
<a href="lynxexec: man 7 tcp">tcp manual</a>
The spaces within the command are now deleted by more recent versions of
lynx.
I am using:
Lynx Version 2.8.6dev.13 (07 Jun 2005), ncurses 5.4.20040724
Built on linux-gnu Sep 7 2005 22:02:17
To fix this problem, I have made the following changes in HTParse.c.
The commands are OK now and the fix does not seem to break anything.
Xavier
=======================
--- HTParse.c.ORIG 2004-12-30 13:11:59.000000000 +0100
+++ HTParse.c 2005-09-07 21:29:43.000000000 +0200
@@ -412,7 +412,11 @@
* Trim any blanks from the result so far - there's no excuse for blanks
* in a hostname. Also update the tail here.
*/
- tail = LYRemoveBlanks(result);
+ /* But allow spaces in lynxexec commands */
+ if (given.access && strcasecomp(given.access, "lynxexec") == 0)
+ for (tail = result; *tail; tail++) ;
+ else
+ tail = LYRemoveBlanks(result);
/*
* If host in given or related was ended directly with a '?' (no slash),
=======================
_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev