lib/kramdown/parser/kramdown/block_boundary.rb in kramdown-2.0.0 vs lib/kramdown/parser/kramdown/block_boundary.rb in kramdown-2.1.0

- old
+ new

@@ -17,11 +17,12 @@ BLOCK_BOUNDARY = /#{BLANK_LINE}|#{EOB_MARKER}|#{IAL_BLOCK_START}|\Z/ # Return +true+ if we are after a block boundary. def after_block_boundary? - !@tree.children.last || @tree.children.last.type == :blank || - (@tree.children.last.type == :eob && @tree.children.last.value.nil?) || @block_ial + last_child = @tree.children.last + !last_child || last_child.type == :blank || + (last_child.type == :eob && last_child.value.nil?) || @block_ial end # Return +true+ if we are before a block boundary. def before_block_boundary? @src.check(self.class::BLOCK_BOUNDARY)