Skip to content

Commit

Permalink
Fix description
Browse files Browse the repository at this point in the history
  • Loading branch information
crohr committed Jul 4, 2023
1 parent 6fd5ddc commit be447f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wizard
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ wiz_meta() {
sed -n -r 's|^Default: (.+)$|\1|p' "$template"
;;
"description")
local description=$(grep -e "^\s" "$template" | xargs echo | sed -n -r "s| \. |\n|p")
echo "$description"
grep -e "^\s" "$template" | sed -r "s|^ \.\s*$|%NEWLINE%|g" | xargs echo | sed -r "s| ?%NEWLINE% |\\\n|g"
;;
"choices")
IFS=',' read -a choices <<< "$(sed -n -r 's|^Choices: (.+)$|\1|p' "$template" | sed -n -r 's|, ?|,|pg')"
Expand Down

0 comments on commit be447f2

Please sign in to comment.