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 30, 2015
1 parent d21495e commit a8c3b0f
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 @@ -216,11 +216,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 a8c3b0f

Please sign in to comment.