Skip to content

Commit

Permalink
Disable auto strip-whitespace on template with legacyOptimizations
Browse files Browse the repository at this point in the history
2.x version of #5470
  • Loading branch information
dfreedm committed Jan 30, 2019
1 parent d1f36d8 commit e55efa0
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 e55efa0

Please sign in to comment.