From 8f97d94411e59e84c91838291744e5e4dc0fb546 Mon Sep 17 00:00:00 2001 From: Andrew Risse Date: Wed, 8 Oct 2025 10:21:50 -0600 Subject: [PATCH 1/4] init --- main.go | 1 + testdata/expected/file.svelte | 20 ++++++++++++++++++++ testdata/initial/file.svelte | 5 +++++ 3 files changed, 26 insertions(+) create mode 100644 testdata/expected/file.svelte create mode 100644 testdata/initial/file.svelte diff --git a/main.go b/main.go index 9bf601f..b7ad0b8 100644 --- a/main.go +++ b/main.go @@ -355,6 +355,7 @@ func licenseHeader(path string, tmpl *template.Template, data licenseData) ([]by case ".html", ".htm", ".vue", + ".svelte", ".wxi", ".wxl", ".wxs", ".xml": lic, err = executeTemplate(tmpl, data, "") diff --git a/testdata/expected/file.svelte b/testdata/expected/file.svelte new file mode 100644 index 0000000..2f88e7c --- /dev/null +++ b/testdata/expected/file.svelte @@ -0,0 +1,20 @@ + + + +
hello world
\ No newline at end of file diff --git a/testdata/initial/file.svelte b/testdata/initial/file.svelte new file mode 100644 index 0000000..ccd7517 --- /dev/null +++ b/testdata/initial/file.svelte @@ -0,0 +1,5 @@ + + +
hello world
\ No newline at end of file From e7586c5e3e85cc01779878c8f146901086444ac3 Mon Sep 17 00:00:00 2001 From: Andrew Risse <52644157+andrewrisse@users.noreply.github.com> Date: Wed, 8 Oct 2025 15:17:03 -0600 Subject: [PATCH 2/4] add newline --- testdata/expected/file.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testdata/expected/file.svelte b/testdata/expected/file.svelte index 2f88e7c..6727e12 100644 --- a/testdata/expected/file.svelte +++ b/testdata/expected/file.svelte @@ -13,8 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> + -
hello world
\ No newline at end of file +
hello world
From 1ee79569ecb44fca871ac4a0f8d62696da3ed254 Mon Sep 17 00:00:00 2001 From: Andrew Risse <52644157+andrewrisse@users.noreply.github.com> Date: Thu, 9 Oct 2025 08:10:38 -0600 Subject: [PATCH 3/4] Update file.svelte --- testdata/expected/file.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/testdata/expected/file.svelte b/testdata/expected/file.svelte index 6727e12..9247440 100644 --- a/testdata/expected/file.svelte +++ b/testdata/expected/file.svelte @@ -19,3 +19,4 @@
hello world
+ From 56f4b94adf4c34a2c1ab672e2500bfa58e7052a6 Mon Sep 17 00:00:00 2001 From: Andrew Risse <52644157+andrewrisse@users.noreply.github.com> Date: Fri, 10 Oct 2025 10:20:52 -0600 Subject: [PATCH 4/4] Update file.svelte --- testdata/initial/file.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testdata/initial/file.svelte b/testdata/initial/file.svelte index ccd7517..94827b2 100644 --- a/testdata/initial/file.svelte +++ b/testdata/initial/file.svelte @@ -2,4 +2,5 @@ -
hello world
\ No newline at end of file +
hello world
+