fix
This commit is contained in:
parent
730e3cb989
commit
b95a53e880
1 changed files with 3 additions and 1 deletions
|
|
@ -77,7 +77,9 @@ do
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
fixed_line=${line//<h3># /<h4>} # replace '<h3># ' by '<h4>'
|
fixed_line=${line//<h3># /<h4>} # replace '<h3># ' by '<h4>'
|
||||||
fixed_line=${fixed_line//<\/h3>/<\/h4>} # replace '</h3>' by '</h4>'
|
fixed_line=${fixed_line//<\/h3>/<\/h4>} # replace '</h3>' by '</h4>'
|
||||||
sed -i "s~$line~$fixed_line~" "$tempdir/body.html"
|
# shellcheck disable=SC2001
|
||||||
|
fixed_line=$(echo "$fixed_line" | sed "s#&#\\\&#g") # escape eventual '&'
|
||||||
|
sed -i "s${line}£${fixed_line}£" "$tempdir/body.html"
|
||||||
done <<< "$lines"
|
done <<< "$lines"
|
||||||
|
|
||||||
# retrieving of the path of the current .gmi file
|
# retrieving of the path of the current .gmi file
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue