bugfix: escape, again

This commit is contained in:
2025-06-17 14:56:10 +02:00
parent 1d92534ffd
commit 648ff6c016
6 changed files with 113 additions and 32 deletions

View File

@@ -705,18 +705,11 @@ __edit() {
summary=$(awk -v field="SUMMARY" "$AWK_GET" "$fpath")
description=$(awk -v field="DESCRIPTION" "$AWK_GET" "$fpath")
filetmp=$(mktemp --suffix='.md')
(
echo "::: |> $start"
echo "::: <| $end"
) >"$filetmp"
printf "::: |> %s\n::: <| %s\n" "$start" "$end" >"$filetmp"
if [ -n "$location" ]; then
echo "@ $location" >>"$filetmp"
printf "@ %s\n" "$location" >>"$filetmp"
fi
(
echo "# $summary"
echo ""
echo "$description"
) >>"$filetmp"
printf "# %s\n\n%s\n" "$summary" "$description" >>"$filetmp"
checksum=$(cksum "$filetmp")
$EDITOR "$filetmp" >/dev/tty