lib/hieracles/formats/plain.rb in hieracles-0.1.7 vs lib/hieracles/formats/plain.rb in hieracles-0.2.0
- old
+ new
@@ -39,10 +39,10 @@
def build_params_line(key, value, filter)
output = ''
if !filter || Regexp.new(filter).match(key)
first = value.pop
filecolor_index = @index[first[:file]]
- if first[:merged] != first[:value]
+ if is_merged? first
output << "[-] #{key} #{first[:merged]}\n"
output << " [#{filecolor_index}] #{key} #{first[:value]}\n"
else
output << "[#{filecolor_index}] #{key} #{first[:value]}\n"
end