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
f02faf72
Commit
f02faf72
authored
Jun 11, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing discrepancies in the output for concatenated strings inside of identifier schemata.
parent
24687882
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
node.hpp
node.hpp
+1
-1
node_emitters.cpp
node_emitters.cpp
+5
-4
No files found.
node.hpp
View file @
f02faf72
...
@@ -221,7 +221,7 @@ namespace Sass {
...
@@ -221,7 +221,7 @@ namespace Sass {
bool
operator
>
(
Node
rhs
)
const
;
bool
operator
>
(
Node
rhs
)
const
;
bool
operator
>=
(
Node
rhs
)
const
;
bool
operator
>=
(
Node
rhs
)
const
;
string
to_string
()
const
;
string
to_string
(
Type
inside_of
=
none
)
const
;
void
emit_nested_css
(
stringstream
&
buf
,
size_t
depth
,
bool
at_toplevel
=
false
,
bool
in_media_query
=
false
);
void
emit_nested_css
(
stringstream
&
buf
,
size_t
depth
,
bool
at_toplevel
=
false
,
bool
in_media_query
=
false
);
void
emit_propset
(
stringstream
&
buf
,
size_t
depth
,
const
string
&
prefix
);
void
emit_propset
(
stringstream
&
buf
,
size_t
depth
,
const
string
&
prefix
);
void
echo
(
stringstream
&
buf
,
size_t
depth
=
0
);
void
echo
(
stringstream
&
buf
,
size_t
depth
=
0
);
...
...
node_emitters.cpp
View file @
f02faf72
...
@@ -15,7 +15,7 @@ using std::endl;
...
@@ -15,7 +15,7 @@ using std::endl;
namespace
Sass
{
namespace
Sass
{
string
Node
::
to_string
()
const
string
Node
::
to_string
(
Type
inside_of
)
const
{
{
switch
(
type
())
switch
(
type
())
{
{
...
@@ -110,7 +110,7 @@ namespace Sass {
...
@@ -110,7 +110,7 @@ namespace Sass {
}
break
;
}
break
;
case
rule
:
{
case
rule
:
{
string
result
(
at
(
0
).
to_string
());
string
result
(
at
(
0
).
to_string
(
property
));
result
+=
": "
;
result
+=
": "
;
result
+=
at
(
1
).
to_string
();
result
+=
at
(
1
).
to_string
();
return
result
;
return
result
;
...
@@ -304,7 +304,7 @@ namespace Sass {
...
@@ -304,7 +304,7 @@ namespace Sass {
result
+=
at
(
i
).
token
().
unquote
();
result
+=
at
(
i
).
token
().
unquote
();
}
}
else
{
else
{
result
+=
at
(
i
).
to_string
();
result
+=
at
(
i
).
to_string
(
identifier_schema
);
}
}
}
}
return
result
;
return
result
;
...
@@ -329,7 +329,8 @@ namespace Sass {
...
@@ -329,7 +329,8 @@ namespace Sass {
for
(
size_t
i
=
0
,
S
=
size
();
i
<
S
;
++
i
)
{
for
(
size_t
i
=
0
,
S
=
size
();
i
<
S
;
++
i
)
{
result
+=
at
(
i
).
to_string
().
substr
(
1
,
at
(
i
).
token
().
length
()
-
2
);
result
+=
at
(
i
).
to_string
().
substr
(
1
,
at
(
i
).
token
().
length
()
-
2
);
}
}
return
"
\"
"
+
result
+
"
\"
"
;
if
(
inside_of
==
identifier_schema
||
inside_of
==
property
)
return
result
;
else
return
"
\"
"
+
result
+
"
\"
"
;
}
break
;
}
break
;
case
warning
:
{
case
warning
:
{
...
...
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