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 Package: egsl
Version: 0.0.18 Version: 0.0.19
Section: custom Section: custom
Priority: optional Priority: optional
Architecture: all Architecture: all

View File

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

View File

@ -263,10 +263,8 @@ gsl__make_link() {
gsl_post_hf_1="${gsl_post_hf_1}" gsl_post_hf_1="${gsl_post_hf_1}"
gsl_post_hf_1_t="${gsl_post_hf_1}+" gsl_post_hf_1_t="${gsl_post_hf_1}+"
[[ "$sl_post_hf_3" ]] \ [[ "$gsl_post_hf_3" ]] \
&& gsl_html_link_title=" title=\"$sl_post_hf_3\"" && gsl_html_link_title=" title=\"$gsl_post_hf_3\""
echo -ne "\r\033[2K: Converting Links... $gsl_post_hf_1"
# target blank # target blank
gsl_html_link_t=` gsl_html_link_t=`
@ -275,6 +273,8 @@ printf '%s%s%s%s' \
"target=\"blank\">" \ "target=\"blank\">" \
"$gsl_post_hf_1" \ "$gsl_post_hf_1" \
"</a>"` "</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" sed -i "s|_${gsl_post_hf_1_t}|$gsl_html_link_t|g" "$gsl_tmp_post"
# No Target # No Target
@ -283,7 +283,9 @@ printf '%s%s%s' \
"<a href=\"$gsl_post_hf_2\"$gsl_html_link_title>" \ "<a href=\"$gsl_post_hf_2\"$gsl_html_link_title>" \
"$gsl_post_hf_1" \ "$gsl_post_hf_1" \
"</a>"` "</a>"`
sed -i "s|_${gsl_post_hf_1}|$gsl_html_link|g" "$gsl_tmp_post" sed -i "s|_${gsl_post_hf_1}|$gsl_html_link|g" "$gsl_tmp_post"
unset gsl_post_hf_3 gsl_html_link_title
} }
#====================================================================== #======================================================================