lib/csl/pretty_printer.rb in csl-1.0.0.pre21 vs lib/csl/pretty_printer.rb in csl-1.0.0.pre22

- old
+ new

@@ -13,17 +13,17 @@ preamble << tags.map { |t| pp t }.join("\n") end private - def tabwidth - 2 - end - - def preamble - '' - end - + def tabwidth + 2 + end + + def preamble + '' + end + def pp(tag, level = 0) if tag.is_a?(Array) tag.map { |t| pp t, level + 1 }.join("\n") else (' ' * (level * tabwidth)) << tag.to_s \ No newline at end of file