lib/asciidoctor/block.rb in asciidoctor-1.5.6.2 vs lib/asciidoctor/block.rb in asciidoctor-1.5.7

- old
+ new

@@ -122,18 +122,18 @@ result.shift while (first = result[0]) && first.rstrip.empty? result.pop while (last = result[-1]) && last.rstrip.empty? result * LF end else - warn %(Unknown content model '#{@content_model}' for block: #{to_s}) unless @content_model == :empty + logger.warn %(Unknown content model '#{@content_model}' for block: #{to_s}) unless @content_model == :empty nil end end # Public: Returns the preprocessed source of this block # - # Returns the a String containing the lines joined together or nil if there - # are no lines + # Returns the a String containing the lines joined together or empty string + # if there are no lines def source @lines * LF end def to_s