lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lynx-dev] spaces in lynxexec commands


From: Xavier de Gaye
Subject: [Lynx-dev] spaces in lynxexec commands
Date: Wed, 07 Sep 2005 22:26:41 +0200
User-agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513)


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),
=======================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]