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
a64a5c48
Commit
a64a5c48
authored
Oct 04, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oops, need to preserve the separator when copying lists.
parent
9a4adae7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
eval_apply.cpp
eval_apply.cpp
+3
-0
No files found.
eval_apply.cpp
View file @
a64a5c48
...
...
@@ -280,6 +280,7 @@ namespace Sass {
case
Node
:
:
list
:
{
if
(
expr
.
should_eval
()
&&
expr
.
size
()
>
0
)
{
result
=
new_Node
(
Node
::
list
,
expr
.
path
(),
expr
.
line
(),
expr
.
size
());
result
.
is_comma_separated
()
=
expr
.
is_comma_separated
();
result
<<
eval
(
expr
[
0
],
prefix
,
env
,
f_env
,
new_Node
,
ctx
);
for
(
size_t
i
=
1
,
S
=
expr
.
size
();
i
<
S
;
++
i
)
result
<<
expr
[
i
];
}
...
...
@@ -770,6 +771,7 @@ namespace Sass {
Node
newval
;
if
(
val
.
type
()
==
Node
::
list
)
{
newval
=
new_Node
(
Node
::
list
,
val
.
path
(),
val
.
line
(),
val
.
size
());
newval
.
is_comma_separated
()
=
val
.
is_comma_separated
();
for
(
size_t
i
=
0
,
S
=
val
.
size
();
i
<
S
;
++
i
)
{
if
(
val
[
i
].
should_eval
())
newval
<<
eval
(
val
[
i
],
Node
(),
bindings
,
ctx
.
function_env
,
new_Node
,
ctx
);
else
newval
<<
val
[
i
];
...
...
@@ -879,6 +881,7 @@ namespace Sass {
Node
retval
(
eval
(
stm
[
0
],
Node
(),
bindings
,
ctx
.
function_env
,
new_Node
,
ctx
));
if
(
retval
.
type
()
==
Node
::
list
)
{
Node
new_list
(
new_Node
(
Node
::
list
,
retval
.
path
(),
retval
.
line
(),
retval
.
size
()));
new_list
.
is_comma_separated
()
=
retval
.
is_comma_separated
();
for
(
size_t
i
=
0
,
S
=
retval
.
size
();
i
<
S
;
++
i
)
{
new_list
<<
eval
(
retval
[
i
],
Node
(),
bindings
,
ctx
.
function_env
,
new_Node
,
ctx
);
}
...
...
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