Permalink
Browse files

removed duplicated viewBox problem with more updated Inkscape

  • Loading branch information...
WebReflection committed Apr 9, 2015
1 parent 990fa70 commit 264989b2df7c6c35860135e02d9a2aaed8fca68d
Showing with 3 additions and 2 deletions.
  1. +3 −2 svg.sh
View
5 svg.sh
@@ -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'

0 comments on commit 264989b

Please sign in to comment.