jekyll-include_snippet 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/include_snippet/extractor.rb +9 -1
- data/lib/jekyll/include_snippet/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: cb7932037b39484d03356a384926c06b979d84ab
|
4
|
+
data.tar.gz: 3366224a0c3703f73e4c65398345d817dcd369ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8d2f5773ff89da894e9a7850cf29deba329e9d48c9891ba4fe34a6936429adbb97a145f110b60e69ab99f1b419c0a2c538195c4c3bb43f4ab935eaf970cb623
|
7
|
+
data.tar.gz: 138b7dcb594b31d6475b6d15901d33634e88258dd60f521e1208456340631a56126f0f7baa5c05743ef97063b1d2365e3f96c2160fdfc327970b98d1adec3a58
|
@@ -48,10 +48,18 @@ module Jekyll
|
|
48
48
|
|
49
49
|
def dedented_text
|
50
50
|
lines
|
51
|
-
.map { |
|
51
|
+
.map { |line| dedent(line) }
|
52
52
|
.join
|
53
53
|
.rstrip
|
54
54
|
end
|
55
|
+
|
56
|
+
def dedent(line)
|
57
|
+
if line.length >= indent
|
58
|
+
line[indent..-1]
|
59
|
+
else
|
60
|
+
line
|
61
|
+
end
|
62
|
+
end
|
55
63
|
end
|
56
64
|
end
|
57
65
|
end
|