File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ namespace Sass {
218
218
// create an absolute path by resolving relative paths with cwd
219
219
std::string rel2abs (const std::string& path, const std::string& base, const std::string& cwd)
220
220
{
221
- return make_canonical_path (join_paths (join_paths (cwd, base), path));
221
+ return make_canonical_path (join_paths (join_paths (cwd + " / " , base + " / " ), path));
222
222
}
223
223
224
224
// create a path that is relative to the given base directory
Original file line number Diff line number Diff line change @@ -129,7 +129,8 @@ namespace Sass {
129
129
if (opt.source_comments ) {
130
130
std::stringstream ss;
131
131
append_indentation ();
132
- ss << " /* line " << r->pstate ().line + 1 << " , " << r->pstate ().path << " */" ;
132
+ std::string path (File::abs2rel (r->pstate ().path ));
133
+ ss << " /* line " << r->pstate ().line + 1 << " , " << path << " */" ;
133
134
append_string (ss.str ());
134
135
append_optional_linefeed ();
135
136
}
You can’t perform that action at this time.
0 commit comments