Skip to content

Commit

Permalink
Fix string output normalization for linefeeds
Browse files Browse the repository at this point in the history
Fixes sass#1230
  • Loading branch information
mgreter committed Jun 15, 2015
1 parent 83a1f1c commit 4bf42ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,14 @@ namespace Sass {
string string_to_output(const string& str)
{
string out("");
bool lf = false;
for (auto i : str) {
if (i == 10) {
out += ' ';
} else {
lf = true;
} else if (!(lf && isspace(i))) {
out += i;
lf = false;
}
}
return out;
Expand Down

0 comments on commit 4bf42ef

Please sign in to comment.