From 99f1927d65656c9706ec5ea08f1d38a7cb926b37 Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Wed, 13 Apr 2022 18:33:11 +0200 Subject: [PATCH] Fix: titles in links --- control | 2 +- usr/local/bin/gsl | 2 +- var/lib/gsl/scripts/gsl__post_makers | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/control b/control index 397a593..d38e35c 100644 --- a/control +++ b/control @@ -1,5 +1,5 @@ Package: egsl -Version: 0.0.18 +Version: 0.0.19 Section: custom Priority: optional Architecture: all diff --git a/usr/local/bin/gsl b/usr/local/bin/gsl index c3babc2..7339b5a 100755 --- a/usr/local/bin/gsl +++ b/usr/local/bin/gsl @@ -1,5 +1,5 @@ #!/bin/bash -# Version: 0.0.18 +# Version: 0.0.19 # file: gsl # Folder: /usr/local/bin # By echolib diff --git a/var/lib/gsl/scripts/gsl__post_makers b/var/lib/gsl/scripts/gsl__post_makers index 7a524c4..c5caff3 100644 --- a/var/lib/gsl/scripts/gsl__post_makers +++ b/var/lib/gsl/scripts/gsl__post_makers @@ -263,10 +263,8 @@ gsl__make_link() { gsl_post_hf_1="${gsl_post_hf_1}" gsl_post_hf_1_t="${gsl_post_hf_1}+" -[[ "$sl_post_hf_3" ]] \ - && gsl_html_link_title=" title=\"$sl_post_hf_3\"" - -echo -ne "\r\033[2K: Converting Links... $gsl_post_hf_1" +[[ "$gsl_post_hf_3" ]] \ + && gsl_html_link_title=" title=\"$gsl_post_hf_3\"" # target blank gsl_html_link_t=` @@ -275,6 +273,8 @@ printf '%s%s%s%s' \ "target=\"blank\">" \ "$gsl_post_hf_1" \ ""` + +echo -ne "\r\033[2K: Converting Links... $gsl_post_hf_1" sed -i "s|_${gsl_post_hf_1_t}|$gsl_html_link_t|g" "$gsl_tmp_post" # No Target @@ -283,7 +283,9 @@ printf '%s%s%s' \ "" \ "$gsl_post_hf_1" \ ""` + sed -i "s|_${gsl_post_hf_1}|$gsl_html_link|g" "$gsl_tmp_post" +unset gsl_post_hf_3 gsl_html_link_title } #======================================================================