diff --git a/plugins/puts.rb b/plugins/puts.rb index a8013ac..49eb5ea 100644 --- a/plugins/puts.rb +++ b/plugins/puts.rb @@ -23,8 +23,14 @@ module Jekyll end def render(context) - puts ">>> {% puts %} <<<" - puts super.map(&:strip).join + # Use a block if label + output is wider than 80 characters + if super.length > 69 + puts "{% puts %}" + puts super + puts "{% endputs %}" + else + puts "{% puts %} #{super}" + end end end end