jekyll-template 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41045d4fd024d55ddcd612d04f33e64070ba2adf
4
- data.tar.gz: ef575193f4cb066e829becce98b7447658010797
3
+ metadata.gz: 1391c7dc45ccf7e136c7fc9f1052136d7ce84327
4
+ data.tar.gz: 637faf6d93e0120a7483da762bb78fa697dc3405
5
5
  SHA512:
6
- metadata.gz: c020b607566b5612176c252c85556a219256a80622456becfc92c9bcd30dfbc5d4d448d911b7876049dbbdd9d287c9ea98e4b0e313854aec521c3ed6ca1d6ffb
7
- data.tar.gz: 1da04dc55d6571e236333a8ee0b7c567ffdcd1d2d1e4b90f7777fd539df9535f21384d06a46f98f7325c9f05c2413723d6c4d14e1250d40cd6f916899e1c164a
6
+ metadata.gz: 7c42e6f942e5a73ea74e6f993b773c2ec9accacac598a36e8ef2fa2c4b5c243c94f47a80b9ab0a035f874ca1fc28da4c6bf00e63565fa9ffec5ed3733b9ac51d
7
+ data.tar.gz: 6e686e58e962e7a263a362d03de7f92d942fbaa41067b8ad383cfc15ffae2f210804c414f53598bc3f72351edae241c65bcffef2270950072075e46f3e0aceb9
@@ -166,8 +166,8 @@ module Jekyll
166
166
  # Remove indentations
167
167
  whitespace_regex = %r!^\s*!m
168
168
  if content =~ whitespace_regex
169
- indentation = Regexp.last_match(0)
170
- content = content.gsub(indentation, "")
169
+ indentation = Regexp.last_match(0).length
170
+ content = content.gsub(/^\ {#{indentation}}/, "")
171
171
  end
172
172
 
173
173
  content
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Template
3
- VERSION = "0.8.0"
3
+ VERSION = "0.9.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ItsJonQ
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-24 00:00:00.000000000 Z
11
+ date: 2017-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll