pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www Drop trailing whitespace from interactively entere...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2793d8b53df0
branches:  trunk
changeset: 511742:2793d8b53df0
user:      is <is%pkgsrc.org@localhost>
date:      Thu Apr 20 18:34:07 2006 +0000

description:
Drop trailing whitespace from interactively entered (e.g. cut'n'pasted)
URLs. This mimics the behaviour of other WWW browsers.

diffstat:

 www/links-gui/Makefile     |   4 ++--
 www/links/Makefile         |   3 ++-
 www/links/distinfo         |   4 ++--
 www/links/patches/patch-aa |  16 +++++++++++++++-
 4 files changed, 21 insertions(+), 6 deletions(-)

diffs (67 lines):

diff -r 487e03858547 -r 2793d8b53df0 www/links-gui/Makefile
--- a/www/links-gui/Makefile    Thu Apr 20 18:32:42 2006 +0000
+++ b/www/links-gui/Makefile    Thu Apr 20 18:34:07 2006 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.40 2006/04/17 13:46:52 wiz Exp $
+# $NetBSD: Makefile,v 1.41 2006/04/20 18:34:07 is Exp $
 #
 
 PKGNAME=       links-gui-2.1.0.21
-PKGREVISION=   1
+PKGREVISION=   2
 
 COMMENT=       Lynx-like text and graphics WWW browser
 
diff -r 487e03858547 -r 2793d8b53df0 www/links/Makefile
--- a/www/links/Makefile        Thu Apr 20 18:32:42 2006 +0000
+++ b/www/links/Makefile        Thu Apr 20 18:34:07 2006 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.39 2006/04/09 16:17:55 wiz Exp $
+# $NetBSD: Makefile,v 1.40 2006/04/20 18:34:07 is Exp $
 #
 
 PKGNAME=       links-2.1.0.21
+PKGREVISION=   1
 COMMENT=       Lynx-like text WWW browser
 
 CONFLICTS+=    links-gui-[0-9]* elinks-0.3*
diff -r 487e03858547 -r 2793d8b53df0 www/links/distinfo
--- a/www/links/distinfo        Thu Apr 20 18:32:42 2006 +0000
+++ b/www/links/distinfo        Thu Apr 20 18:34:07 2006 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.34 2006/04/09 16:17:55 wiz Exp $
+$NetBSD: distinfo,v 1.35 2006/04/20 18:34:07 is Exp $
 
 SHA1 (links-2.1pre21.tar.bz2) = 6806cdbaa9c2402ecd6e0734d113cf21ea89c252
 RMD160 (links-2.1pre21.tar.bz2) = 051054b5ba0dd590d225d449e23b7f7970e218b3
 Size (links-2.1pre21.tar.bz2) = 3869781 bytes
-SHA1 (patch-aa) = 47fab20748fc660517ebc2d2ef8a6b9c7c0dd1e4
+SHA1 (patch-aa) = 374bd3262b4f50712cd42898d67e90ebcba72577
 SHA1 (patch-ab) = a2d461c9d8b6300469ab6195886830fdd63be837
diff -r 487e03858547 -r 2793d8b53df0 www/links/patches/patch-aa
--- a/www/links/patches/patch-aa        Thu Apr 20 18:32:42 2006 +0000
+++ b/www/links/patches/patch-aa        Thu Apr 20 18:34:07 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.1 2002/09/04 20:47:45 wiz Exp $
+$NetBSD: patch-aa,v 1.2 2006/04/20 18:34:07 is Exp $
 
 --- session.c.orig     Sat Jun 29 21:27:04 2002
 +++ session.c
@@ -20,3 +20,17 @@
                else add_chr_to_str(&u, &l, (unhx(url[1]) << 4) + unhx(url[2])), url += 2;
        }
        return u;
+@@ -2047,6 +2047,13 @@ void goto_url_f(struct session *ses, voi
+ /* this doesn't send referer */
+ void goto_url(struct session *ses, unsigned char *url)
+ {
++      char *p;
++      p = url + strlen(url);
++      do {
++              --p;
++      } while (isspace(*p));
++      *++p = 0;
++
+       goto_url_f(ses, NULL, url, NULL, NULL, -1, 0, 1, 0);
+ }
+ 



Home | Main Index | Thread Index | Old Index