diff --git a/svg.sh b/svg.sh index b4a9087d..edfbd58f 100644 --- a/svg.sh +++ b/svg.sh @@ -16,8 +16,9 @@ viewport() { content=$( cat "$f" | sed 's///' | - sed 's/width="47.5"/viewBox="0 0 47.5 47.5"/' | - sed 's/height="47.5"/style="enable-background:new 0 0 47.5 47.5;"/' | + sed 's/viewBox="0 0 47.5 47.5"//' | + sed 's/height="47.5"/viewBox="0 0 47.5 47.5"/' | + sed 's/width="47.5"/style="enable-background:new 0 0 47.5 47.5;"/' | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n//g' | sed -e 's/ */ /g' | sed -e 's/ \/>/\/>/g'