lib/pdd/rule/roles.rb in pdd-0.21.2 vs lib/pdd/rule/roles.rb in pdd-0.21.3
- old
+ new
@@ -35,14 +35,14 @@
role = p.xpath('role/text()').to_s
next nil if @roles.include?(role)
"puzzle #{p.xpath('file/text()')}:#{p.xpath('lines/text()')}" +
if role.empty?
- " doesn't define any role"\
- ", while one of these roles is required: #{@roles}"
+ " doesn't define any role" \
+ ", while one of these roles is required: #{@roles}"
else
- " defines role #{role}"\
- ", while only these roles are allowed: #{@roles}"
+ " defines role #{role}" \
+ ", while only these roles are allowed: #{@roles}"
end
end.compact
end
end
end