Fix: titles in links

This commit is contained in:
Cyrille L 2022-04-13 18:33:11 +02:00
parent dee44fe782
commit 99f1927d65
3 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,5 @@
Package: egsl
Version: 0.0.18
Version: 0.0.19
Section: custom
Priority: optional
Architecture: all

View File

@ -1,5 +1,5 @@
#!/bin/bash
# Version: 0.0.18
# Version: 0.0.19
# file: gsl
# Folder: /usr/local/bin
# By echolib

View File

@ -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" \
"</a>"`
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' \
"<a href=\"$gsl_post_hf_2\"$gsl_html_link_title>" \
"$gsl_post_hf_1" \
"</a>"`
sed -i "s|_${gsl_post_hf_1}|$gsl_html_link|g" "$gsl_tmp_post"
unset gsl_post_hf_3 gsl_html_link_title
}
#======================================================================