[html] Formatting JavaScript placed after div elements inside html file adds 12 extra tabs. Fixes #23063

This commit is contained in:
Martin Aeschlimann
2017-03-27 23:14:40 +02:00
parent 4f07618a8d
commit 1242ff5751
5 changed files with 20 additions and 5 deletions

View File

@@ -0,0 +1,6 @@
<app-route path="/module" element="page-module" bindRouter onUrlChange="updateModel"></app-route>
<script>
Polymer({
});
</script>

View File

@@ -0,0 +1,6 @@
<app-route path="/module" element="page-module" bindRouter onUrlChange="updateModel"></app-route>
<script>
Polymer({
});
</script>

View File

@@ -71,6 +71,7 @@ suite('HTML Embedded Formatting', () => {
assertFormatWithFixture('19813.html', '19813.html');
assertFormatWithFixture('19813.html', '19813-4spaces.html', void 0, FormattingOptions.create(4, true));
assertFormatWithFixture('19813.html', '19813-tab.html', void 0, FormattingOptions.create(1, false));
assertFormatWithFixture('21634.html', '21634.html');
})
test('Script end tag', function (): any {