We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0599ce commit 6a11df8Copy full SHA for 6a11df8
lib/sass_spec/util.rb
@@ -3,7 +3,7 @@ class << self
3
# Normalizes the whitespace in the given CSS to make it easier to compare
4
# across implementations.
5
def normalize_output(css)
6
- css.gsub(/(?:\r?\n)+/, "\n")
+ css.gsub(/(?:\r?\n)+/, "\n").force_encoding("utf-8")
7
end
8
9
# Normalizes the path names and whitespace in the given error message.
@@ -16,6 +16,7 @@ def normalize_error(error)
16
.sub(/(?:\r?\n)*\z/, "\n") # make sure we have exactly one trailing linefeed
17
.sub(/\A(?:\r?\s)+\z/, "") # clear the whole file if only whitespace
18
.gsub(/\r\n/, "\n") # remove Windows line feeds
19
+ .force_encoding("utf-8")
20
21
22
# Yields each directory in `path`, from the outermost to the innermost.
0 commit comments