Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(template): remove blank lines in scss/map-deep and scss/map-flat templates #588

Merged
merged 1 commit into from
Apr 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions lib/common/templates/scss/map-deep.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,17 @@
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.

%>
<%
%><%
// for backward compatibility we need to have the user explicitly hide it
var showFileHeader = (this.options && this.options.hasOwnProperty('showFileHeader')) ? this.options.showFileHeader : true;
if(showFileHeader) {
var header = '';
header += "/*\n Do not edit directly";
header += "\n/*\n Do not edit directly";
header += "\n Generated on " + new Date().toUTCString();
header += "\n*/\n";
header += "\n*/\n\n";
print(header);
}

print("\n");

// output the list of tokens as Sass variables
//
_.each(allProperties, function(prop) {
Expand Down
9 changes: 3 additions & 6 deletions lib/common/templates/scss/map-flat.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,17 @@
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.

%>
<%
%><%
// for backward compatibility we need to have the user explicitly hide it
var showFileHeader = (this.options && this.options.hasOwnProperty('showFileHeader')) ? this.options.showFileHeader : true;
if(showFileHeader) {
var header = '';
header += "/*\n Do not edit directly";
header += "\n/*\n Do not edit directly";
header += "\n Generated on " + new Date().toUTCString();
header += "\n*/\n";
header += "\n*/\n\n";
print(header);
}

print('\n');

var output = '';
output += `$${this.mapName||'tokens'}: (\n`;
output += allProperties.map(function(prop){
Expand Down