Skip to content

Commit

Permalink
Merge pull request #1316 from xzyfer/fix/1230
Browse files Browse the repository at this point in the history
Fix string output normalization for linefeeds
  • Loading branch information
xzyfer committed Jul 8, 2015
2 parents 54707e1 + dda1181 commit 33f4856
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 33f4856

Please sign in to comment.