Update dictpopup

This commit is contained in:
Konstantin 2023-05-29 22:31:55 -04:00 committed by GitHub
parent a90f46b1c5
commit 52de0983bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,5 +10,6 @@ if echo "$dict_lookup" | grep -F -q "Nothing similar to"; then
else
output=$(echo "$dict_lookup" | tail -n +5 | sed 's|<br>|\n|g' | sed 's|<[^>]*>||g')
output=$(echo "$output" | sed -E 's/&(amp|lt|gt|quot);/\1/g')
output=$(echo "$output" | perl -pe 's/<[^>]*>//g')
printf '%s\0' "$output" | xargs -0 -I {} sh -c 'popup "$@"' _ {}
fi