From e55efa0d51f5a5670006cf6730aaec915a8f914d Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Tue, 29 Jan 2019 17:34:07 -0800 Subject: [PATCH] Disable auto `strip-whitespace` on template with legacyOptimizations 2.x version of #5470 --- lib/mixins/template-stamp.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mixins/template-stamp.html b/lib/mixins/template-stamp.html index 11472e16f6..6d222abeea 100644 --- a/lib/mixins/template-stamp.html +++ b/lib/mixins/template-stamp.html @@ -204,7 +204,7 @@ if (!template._templateInfo) { let templateInfo = template._templateInfo = {}; templateInfo.nodeInfoList = []; - templateInfo.stripWhiteSpace = Polymer.legacyOptimizations || + templateInfo.stripWhiteSpace = (outerTemplateInfo && outerTemplateInfo.stripWhiteSpace) || template.hasAttribute('strip-whitespace'); this._parseTemplateContent(template, templateInfo, {parent: null});