lib/rouge/util.rb in rouge-1.1.0 vs lib/rouge/util.rb in rouge-1.2.0

- old
+ new

@@ -70,17 +70,17 @@ # push a state for the next indented block def starts_block(block_state) @block_state = block_state @block_indentation = @last_indentation || '' - debug { " starts_block #{block_state.inspect}" } - debug { " block_indentation: #{@block_indentation.inspect}" } + puts " starts_block #{block_state.inspect}" if @debug + puts " block_indentation: #{@block_indentation.inspect}" if @debug end # handle a single indented line def indentation(indent_str) - debug { " indentation #{indent_str.inspect}" } - debug { " block_indentation: #{@block_indentation.inspect}" } + puts " indentation #{indent_str.inspect}" if @debug + puts " block_indentation: #{@block_indentation.inspect}" if @debug @last_indentation = indent_str # if it's an indent and we know where to go next, # push that state. otherwise, push content and # clear the block state.