diff options
Diffstat (limited to 'docs/_plugins')
-rw-r--r-- | docs/_plugins/include_example.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/_plugins/include_example.rb b/docs/_plugins/include_example.rb index 0f4184c746..6ee63a5ac6 100644 --- a/docs/_plugins/include_example.rb +++ b/docs/_plugins/include_example.rb @@ -50,7 +50,7 @@ module Jekyll .map { |l| l[/\A */].size } .min - lines.map { |l| l[min_start_spaces .. -1] } + lines.map { |l| l.strip.size == 0 ? l : l[min_start_spaces .. -1] } end # Select lines according to labels in code. Currently we use "$example on$" and "$example off$" |