From 0c77275bdca01622061e124f037a7ecb9f9c6587 Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Thu, 26 Aug 2021 15:43:11 +0200 Subject: [PATCH] (fix) adjust wrong "is inside other tag" check (#247) Fixes #244 --- CHANGELOG.md | 4 ++++ src/lib/snipTagContent.ts | 13 ++++--------- .../samples/script-with-html-comment-and-style.html | 9 +++++++++ 3 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 test/printer/samples/script-with-html-comment-and-style.html diff --git a/CHANGELOG.md b/CHANGELOG.md index bb8f1013..f582178c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # prettier-plugin-svelte changelog +## Unreleased + +* (fix) Adjust "is inside other tag"-checks when snipping tags ([#244](https://github.com/sveltejs/prettier-plugin-svelte/issues/244)) + ## 2.3.1 * (fix) More robust check for `hardline` to prevent trailing empty lines in `