Skip to content

Commit 3c18ecd

Browse files
committed
Do not format text content of <style> and <script>
`<style>` is usually used for CSS, and `<script>` is usually used for JavaScript (or some other scripting language). Given the user has probably manually formatted this code, we should avoid formatting the text content by default. Signed-off-by: David Thompson <davthomp@redhat.com>
1 parent c8b8ffa commit 3c18ecd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/settings/XMLFormattingOptions.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ public class XMLFormattingOptions extends org.eclipse.lemminx.settings.LSPFormat
5454
"screen", //
5555
"synopsis", //
5656
"pre", //
57-
"xd:pre");
57+
"xd:pre", //
58+
"style", //
59+
"script");
5860

5961
private boolean legacy;
6062
private int maxLineWidth;

0 commit comments

Comments
 (0)