lib/xcpretty/printer.rb in xcpretty-0.1.9 vs lib/xcpretty/printer.rb in xcpretty-0.1.10

- old
+ new

@@ -11,10 +11,13 @@ @formatter = klass.new(params[:unicode], params[:colorize]) end def pretty_print(text) formatted_text = formatter.pretty_format(text) - STDOUT.print(formatted_text + formatter.optional_newline) unless formatted_text.empty? + unless formatted_text.empty? + STDOUT.print(formatted_text + formatter.optional_newline) + STDOUT.flush + end end end end