Skip to content

Commit

Permalink
Fix newlines in MergeableRule lint message
Browse files Browse the repository at this point in the history
  • Loading branch information
srawlins authored and sds committed Aug 19, 2015
1 parent 1441787 commit 8c4d946
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/scss_lint/linter/mergeable_selector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ def check_node(node)
seen_nodes << child_node
next unless mergeable_node

rule_text = node_rule(child_node).gsub(/(\r?\n)+/, ' ')

add_lint child_node.line,
"Merge rule `#{node_rule(child_node)}` with rule " \
"Merge rule `#{rule_text}` with rule " \
"on line #{mergeable_node.line}"
end

Expand Down

0 comments on commit 8c4d946

Please sign in to comment.