Skip to content

Commit

Permalink
Merge pull request #5471 from Polymer/2.x-legacyOpt-no-strip
Browse files Browse the repository at this point in the history
[2.x] Disable auto `strip-whitespace` on template with legacyOptimizations
  • Loading branch information
dfreedm authored Jan 30, 2019
2 parents d1f36d8 + e55efa0 commit 745ddde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mixins/template-stamp.html
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down

0 comments on commit 745ddde

Please sign in to comment.