From 89d916f4c8a2599cc0fe407579c42d2abc0404b7 Mon Sep 17 00:00:00 2001 From: Kohei Seino Date: Tue, 30 Mar 2021 12:08:15 +0900 Subject: [PATCH] fix(template): remove blank lines in scss/map-deep and scss/map-flat templates --- lib/common/templates/scss/map-deep.template | 9 +++------ lib/common/templates/scss/map-flat.template | 9 +++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/lib/common/templates/scss/map-deep.template b/lib/common/templates/scss/map-deep.template index 1b6728ff7..360eb6b31 100644 --- a/lib/common/templates/scss/map-deep.template +++ b/lib/common/templates/scss/map-deep.template @@ -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) { diff --git a/lib/common/templates/scss/map-flat.template b/lib/common/templates/scss/map-flat.template index 5b58c11e5..1741505e3 100644 --- a/lib/common/templates/scss/map-flat.template +++ b/lib/common/templates/scss/map-flat.template @@ -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){