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 89eadc9 commit 8b255f8Copy full SHA for 8b255f8
output_compressed.cpp
@@ -2,6 +2,7 @@
2
#include "inspect.hpp"
3
#include "ast.hpp"
4
#include "context.hpp"
5
+#include "to_string.hpp"
6
7
namespace Sass {
8
using namespace std;
@@ -183,7 +184,16 @@ namespace Sass {
183
184
185
void Output_Compressed::operator()(Comment* c)
186
{
- return;
187
+ To_String to_string;
188
+ string txt = c->text()->perform(&to_string);
189
+ if(txt[2] != '!') {
190
+ return;
191
+ }
192
+ else {
193
+ Inspect i(ctx);
194
+ c->perform(&i);
195
+ buffer += i.get_buffer();
196
197
}
198
199
void Output_Compressed::operator()(List* list)
0 commit comments