Skip to content

Commit

Permalink
removed duplicated viewBox problem with more updated Inkscape
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Apr 9, 2015
1 parent 990fa70 commit 264989b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions svg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ viewport() {
content=$(
cat "$f" |
sed 's/<!-- Created with Inkscape (http:\/\/inkscape.org\/) -->//' |
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'
Expand Down

0 comments on commit 264989b

Please sign in to comment.