jekyll-diagrams 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/diagrams/graphviz.rb +2 -2
- data/lib/jekyll/diagrams/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5256cb817227b9150124feaa2ef887e91f3ab257
|
4
|
+
data.tar.gz: fbdc4f5c4e461d39352ac03f376aa09ceb67adbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cb291fa127444bd51b5bfd2746d512ad024a080637c85925c331fdf563f9844ed4bdf2928cb3c2272bfa71febdb658bebdb6cb57dcd110425d6e74b9b5cce5f
|
7
|
+
data.tar.gz: 82582e4fe9a99b9066e7cc00c4907c328a5555c486c4639fdb6acd362db0754d9b02b96eced430aac72c108a70542a3c3b18c932f2c874bdb0db03352f2a1898
|
@@ -59,14 +59,14 @@ module Jekyll
|
|
59
59
|
|
60
60
|
svg.force_encoding 'UTF-8'
|
61
61
|
|
62
|
-
strip_metainfo(svg)
|
62
|
+
svg = strip_metainfo(svg)
|
63
63
|
wrap_div(svg)
|
64
64
|
end
|
65
65
|
|
66
66
|
private
|
67
67
|
|
68
68
|
def strip_metainfo(svg)
|
69
|
-
svg.sub(/(
|
69
|
+
svg.sub(/(?:.*\n){6}/, '')
|
70
70
|
.sub(%[xmlns="http://www.w3.org/2000/svg"], '')
|
71
71
|
.sub(%[xmlns:xlink="http://www.w3.org/1999/xlink"], '')
|
72
72
|
end
|