This commit is contained in:
OniriCorpe 2024-04-30 01:41:13 +02:00
parent 730e3cb989
commit b95a53e880

View file

@ -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