Fix: titles in links
This commit is contained in:
parent
dee44fe782
commit
99f1927d65
2
control
2
control
|
@ -1,5 +1,5 @@
|
|||
Package: egsl
|
||||
Version: 0.0.18
|
||||
Version: 0.0.19
|
||||
Section: custom
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
# Version: 0.0.18
|
||||
# Version: 0.0.19
|
||||
# file: gsl
|
||||
# Folder: /usr/local/bin
|
||||
# By echolib
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
#======================================================================
|
||||
|
|
Loading…
Reference in New Issue