From 10e5e5ef39087b8c80dfa0f88aed187979b5df02 Mon Sep 17 00:00:00 2001 From: john-neptune <72364145+john-neptune@users.noreply.github.com> Date: Tue, 23 Jan 2024 10:28:10 -0500 Subject: [PATCH] fix(prefixIds): sameline comments (#1942) --- .gitignore | 8 ++++++++ plugins/prefixIds.js | 1 - test/plugins/prefixIds.13.svg.txt | 23 +++++++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 test/plugins/prefixIds.13.svg.txt diff --git a/.gitignore b/.gitignore index f834ff6ac..e31337be7 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,11 @@ coverage .DS_Store .vscode *.log + +# https://github.com/github/gitignore/blob/main/Global/Vim.gitignore +[._]*.s[a-v][a-z] +!*.svg # comment out if you don't need vector files +[._]*.sw[a-p] +[._]s[a-rt-v][a-z] +[._]ss[a-gi-z] +[._]sw[a-p] diff --git a/plugins/prefixIds.js b/plugins/prefixIds.js index 90f348031..15219c8f4 100644 --- a/plugins/prefixIds.js +++ b/plugins/prefixIds.js @@ -183,7 +183,6 @@ export const fn = (_root, params, info) => { }); child.value = csstree.generate(cssAst); - return; } } diff --git a/test/plugins/prefixIds.13.svg.txt b/test/plugins/prefixIds.13.svg.txt new file mode 100644 index 000000000..d971391e7 --- /dev/null +++ b/test/plugins/prefixIds.13.svg.txt @@ -0,0 +1,23 @@ +Prefix IDs should apply to all nodes in styles, namely when styles are split +into multiple nodes due to XML comments. + +=== + + + + + +@@@ + + + +