[wiki] [sites] [surf][patch] externalpipe: Fix bug with surf_linkselect.sh script || Miles Alan

From: <git_AT_suckless.org>
Date: Fri, 09 Aug 2019 00:15:07 +0200

commit ad36d54de1f530673f90ddff7a78d0ce0c86286d
Author: Miles Alan <m_AT_milesalan.com>
Date: Thu Aug 8 17:14:06 2019 -0500

    [surf][patch] externalpipe: Fix bug with surf_linkselect.sh script
    
    Allows links split over multiple lines to be rendered properly in script.

diff --git a/surf.suckless.org/patches/externalpipe/surf_linkselect.sh b/surf.suckless.org/patches/externalpipe/surf_linkselect.sh
index 3875483c..2fe11384 100755
--- a/surf.suckless.org/patches/externalpipe/surf_linkselect.sh
+++ b/surf.suckless.org/patches/externalpipe/surf_linkselect.sh
_AT_@ -63,7 +63,7 @@ function link_normalize() {
 }
 
 function link_select() {
- tr -d '
' |
+ tr '
' ' ' |
     xmllint --html --xpath "//a" - |
     dump_links_with_titles |
     awk '!x[$0]++' |
Received on Fri Aug 09 2019 - 00:15:07 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 09 2019 - 00:24:35 CEST