jekyll_include_plugin 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f215988ef4f0f0bade16dcd91d295849d628c94bce7ed2f162a71677818f5a51
4
- data.tar.gz: 7a2dca4c0232b3a8ef7b3ad343d0bcd697fdfb13cfa7e6504955b6310319fa6e
3
+ metadata.gz: 11271262b7a80806c8adab712832cf7f761744e9a8c771f0221a093d8bfbba53
4
+ data.tar.gz: 8eb7789ac320b98a785ce2d789f4b41da6407596a14805ff62f8fb145f781201
5
5
  SHA512:
6
- metadata.gz: cf101ffc093da30e90c3d0bb8bc3578541dc3a74fdfad330e7d921dcc09c7f03b06dfd68a3dc97150d76fddb88c0599a2edab2e8f840156c62cbd8dbf84a5aa9
7
- data.tar.gz: 5adca5716c358136e884d9b293d057e2907cbb2fd97ac909fe2a0656201a9b84d0a246f617fc78c1e15d41b2cfe121087e01519964c484436ee845f9fd4768c5
6
+ metadata.gz: fe9a08250e743f1d99b7d1f84d3fab503999e38b77d579e80dde17be04e2233047a55aef254e8ac8af4589a158d4fe64495416322ef1644a5b839530b30c9025
7
+ data.tar.gz: 6d466011f2f2c69ec1f12af31e7fd68a7037f9ef94f0606608d57e84020d9ec37842205a9df47856a91d3a52a5cc6a73d6183aaf604621c53e916d2d3dc76fb4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll_include_plugin (1.0.2)
4
+ jekyll_include_plugin (1.0.3)
5
5
  jekyll (~> 3.9)
6
6
  liquid (~> 4.0)
7
7
 
@@ -42,7 +42,8 @@ module JekyllIncludePlugin
42
42
  abort("End of the snippet '#{snippet_name}' has not been found.") unless snippet_end_found
43
43
  abort("Snippet '#{snippet_name}' appears to be empty. Fix and retry.") if snippet_content.empty?
44
44
 
45
- return "...\n#{snippet_content}"
45
+ first_line_indent = %r!^\s*!.match(line)[0]
46
+ return "#{first_line_indent}...\n#{snippet_content}"
46
47
  end
47
48
 
48
49
  def remove_all_snippets(text)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllIncludePlugin
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_include_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Lesikov