Skip to content
This repository was archived by the owner on Apr 4, 2019. It is now read-only.

Commit 19f065c

Browse files
committed
Don't double-strip static values
1 parent ca26b9f commit 19f065c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc-src/SASS_CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
* Table of contents
44
{:toc}
55

6+
## 3.7.2 (Unreleased)
7+
8+
* Fix another escaped-whitespace edge case.
9+
610
## 3.7.1 (7 November 2018)
711

812
* Properly handle escaped whitespace and other unusual characters.

lib/sass/scss/parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ def value!
993993
if (val = tok(STATIC_VALUE))
994994
# If val ends with escaped whitespace, leave it be.
995995
val = val.lstrip.sub(/(?<!\\)\s*$/, '\1')
996-
str = Sass::Script::Tree::Literal.new(Sass::Script::Value::String.new(val.strip))
996+
str = Sass::Script::Tree::Literal.new(Sass::Script::Value::String.new(val))
997997
str.line = start_pos.line
998998
str.source_range = range(start_pos)
999999
return str

0 commit comments

Comments
 (0)