# File lib/cucumber/formatter/console.rb, line 29 def format_string(string, status) fmt = format_for(status) string.split("\n").map do |line| if Proc === fmt fmt.call(line) else fmt % line end end.join("\n") end