Skip to content

Do not format text content of <style> and <script>#1755

Merged
datho7561 merged 1 commit into
eclipse-lemminx:mainfrom
datho7561:do-not-format-style-script-text-content
Sep 30, 2025
Merged

Do not format text content of <style> and <script>#1755
datho7561 merged 1 commit into
eclipse-lemminx:mainfrom
datho7561:do-not-format-style-script-text-content

Conversation

@datho7561

Copy link
Copy Markdown
Contributor

<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.

`<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>
@datho7561
datho7561 force-pushed the do-not-format-style-script-text-content branch from 3c18ecd to 8fac9ea Compare September 30, 2025 16:06
@datho7561
datho7561 merged commit 4ae363c into eclipse-lemminx:main Sep 30, 2025
4 of 6 checks passed
@datho7561
datho7561 deleted the do-not-format-style-script-text-content branch September 30, 2025 17:22
@angelozerr

Copy link
Copy Markdown
Contributor

Thanks so much to have written tests! Thats super great.

@datho7561 datho7561 added this to the 0.31.1 milestone Apr 21, 2026
@datho7561 datho7561 mentioned this pull request Apr 21, 2026
@angelozerr angelozerr added the bug Something isn't working label Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants