Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
dc41b0df
Commit
dc41b0df
authored
Apr 10, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Got the optimized selectors to emit correctly.
parent
0dbb5f9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
node.cpp
node.cpp
+2
-1
No files found.
node.cpp
View file @
dc41b0df
...
...
@@ -43,6 +43,7 @@ namespace Sass {
}
break
;
case
selector
:
{
cerr
<<
"emitting selector with "
<<
size
()
<<
" children"
<<
endl
;
string
result
;
if
(
!
has_backref
&&
!
prefix
.
empty
())
{
result
+=
prefix
;
...
...
@@ -64,7 +65,7 @@ namespace Sass {
for
(
int
i
=
1
;
i
<
size
();
++
i
)
{
Node
::
Type
t
=
at
(
i
).
type
;
result
+=
" "
;
result
+=
at
(
i
).
to_string
(
at
(
0
).
has_backref
?
prefix
:
""
);
result
+=
at
(
i
).
to_string
(
at
(
i
).
has_backref
?
prefix
:
""
);
}
return
result
;
}
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment