[html] filter empty lines in virtual documents

This commit is contained in:
Martin Aeschlimann
2016-10-20 14:24:07 +02:00
parent 5bacd045c0
commit eec57b4f9d
2 changed files with 21 additions and 3 deletions

View File

@@ -52,6 +52,8 @@ suite('HTML Embedded Support', () => {
assertEmbeddedLanguageContent('<html><style>foo { }</style></html>', 'css', ' foo { } ');
assertEmbeddedLanguageContent('<html><script>var i = 0;</script></html>', 'css', ' ');
assertEmbeddedLanguageContent('<html><style>foo { }</style>Hello<style>foo { }</style></html>', 'css', ' foo { } foo { } ');
assertEmbeddedLanguageContent('<html>\n <style>\n foo { } \n </style>\n</html>\n', 'css', '\n \n foo { } \n \n\n');
});
test('Scripts', function (): any {