Skip to content

Commit

Permalink
Properly escaping diff output for CLI conflict resolver.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ted Han committed Nov 17, 2008
1 parent b5914c0 commit aa49cba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/templater/cli/generator.rb
Expand Up @@ -163,9 +163,9 @@ def say_status(status, template, color = nil)
def output_diff_line(diff)
case diff.action
when '-'
say "<%= color('- #{diff.element.chomp}', :red) %>"
say "<%= color( %(- #{diff.element.chomp}), :red) %>"
when '+'
say "<%= color('+ #{diff.element.chomp}', :green) %>"
say "<%= color( %(+ #{diff.element.chomp}), :green) %>"
else
say "#{diff.action} #{diff.element.chomp}"
end
Expand Down

0 comments on commit aa49cba

Please sign in to comment.