Fix add/remove with spaces/special characters

This commit is contained in:
Jacob Lukas
2011-11-09 12:45:38 -08:00
parent a1a7e3066e
commit 5e507af747
6 changed files with 64 additions and 33 deletions

View File

@@ -131,7 +131,11 @@ def output_file_group(group)
puts "#{c_group}##{@c[:rst]} #{@c[h[:col]]}#{h[:msg]}:\
#{padding}#{@c[:dark]} [#{@c[:rst]}#{@e}#{@c[:dark]}] #{c_group}#{rel_file}#{@c[:rst]}"
# Save the ordered list of output files
@output_files << h[:file]
@output_files << if h[:file] =~ /^"([^\\"]*(\\.[^"]*)*)"/
$1.gsub(/\\(.)/,'\1')
else
h[:file].match(/^[^ ]*/)[0]
end
end
puts "#{c_group}##{@c[:rst]}" # Extra '#'