diff --git a/markup_fmt/tests/fmt/html/attributes/class-names.snap b/markup_fmt/tests/fmt/html/attributes/class-names.snap index d654787..44bf6c0 100644 --- a/markup_fmt/tests/fmt/html/attributes/class-names.snap +++ b/markup_fmt/tests/fmt/html/attributes/class-names.snap @@ -38,7 +38,7 @@ source: markup_fmt/tests/fmt.rs height="58px" width="205px" alt="Yahoo" - /> + > diff --git a/markup_fmt/tests/fmt/html/attributes/srcset.snap b/markup_fmt/tests/fmt/html/attributes/srcset.snap index 2876c00..4ddbd36 100644 --- a/markup_fmt/tests/fmt/html/attributes/srcset.snap +++ b/markup_fmt/tests/fmt/html/attributes/srcset.snap @@ -6,19 +6,19 @@ source: markup_fmt/tests/fmt.rs srcset="/assets/visual@0.5.png 400w, /assets/visual.png 805w" sizes="(max-width: 66rem) 100vw, 66rem" alt="" -/> +> +> +> diff --git a/markup_fmt/tests/fmt/html/basics/html5-boilerplate.snap b/markup_fmt/tests/fmt/html/basics/html5-boilerplate.snap index af3fb9c..5703fb5 100644 --- a/markup_fmt/tests/fmt/html/basics/html5-boilerplate.snap +++ b/markup_fmt/tests/fmt/html/basics/html5-boilerplate.snap @@ -35,15 +35,15 @@ source: markup_fmt/tests/fmt.rs crossorigin="anonymous" > - const func = function() { console.log('Hello, there');} + const func = function() { console.log('Hello, there');} - .a{color:#f00} + .a{color:#f00} -const func = function() { console.log('Hello, there');} + const func = function() { console.log('Hello, there');} -.a{color:#f00} + .a{color:#f00} diff --git a/markup_fmt/tests/fmt/html/bracket-same-line/embed.disabled.snap b/markup_fmt/tests/fmt/html/bracket-same-line/embed.disabled.snap index 335d522..3d5bb4f 100644 --- a/markup_fmt/tests/fmt/html/bracket-same-line/embed.disabled.snap +++ b/markup_fmt/tests/fmt/html/bracket-same-line/embed.disabled.snap @@ -4,16 +4,17 @@ source: markup_fmt/tests/fmt.rs + diff --git a/markup_fmt/tests/fmt/html/bracket-same-line/embed.enabled.snap b/markup_fmt/tests/fmt/html/bracket-same-line/embed.enabled.snap index 5bf4c7a..0411504 100644 --- a/markup_fmt/tests/fmt/html/bracket-same-line/embed.enabled.snap +++ b/markup_fmt/tests/fmt/html/bracket-same-line/embed.enabled.snap @@ -3,15 +3,16 @@ source: markup_fmt/tests/fmt.rs --- + diff --git a/markup_fmt/tests/fmt/html/bracket-same-line/void-elements.disabled.snap b/markup_fmt/tests/fmt/html/bracket-same-line/void-elements.disabled.snap index 1d672c7..4e99a5c 100644 --- a/markup_fmt/tests/fmt/html/bracket-same-line/void-elements.disabled.snap +++ b/markup_fmt/tests/fmt/html/bracket-same-line/void-elements.disabled.snap @@ -4,8 +4,8 @@ source: markup_fmt/tests/fmt.rs - + +> diff --git a/markup_fmt/tests/fmt/html/bracket-same-line/void-elements.enabled.snap b/markup_fmt/tests/fmt/html/bracket-same-line/void-elements.enabled.snap index 1d672c7..cb1749d 100644 --- a/markup_fmt/tests/fmt/html/bracket-same-line/void-elements.enabled.snap +++ b/markup_fmt/tests/fmt/html/bracket-same-line/void-elements.enabled.snap @@ -3,9 +3,7 @@ source: markup_fmt/tests/fmt.rs --- - + src="./1.jpg"> + diff --git a/markup_fmt/tests/fmt/html/case/case.snap b/markup_fmt/tests/fmt/html/case/case.snap index 9801790..09d4dc6 100644 --- a/markup_fmt/tests/fmt/html/case/case.snap +++ b/markup_fmt/tests/fmt/html/case/case.snap @@ -11,8 +11,8 @@ source: markup_fmt/tests/fmt.rs

Hello world!
This is HTML5 Boilerplate.

+ + + diff --git a/markup_fmt/tests/fmt/html/script-style-indent/example.both.snap b/markup_fmt/tests/fmt/html/script-style-indent/example.default.snap similarity index 100% rename from markup_fmt/tests/fmt/html/script-style-indent/example.both.snap rename to markup_fmt/tests/fmt/html/script-style-indent/example.default.snap diff --git a/markup_fmt/tests/fmt/html/script-style-indent/example.override-script.snap b/markup_fmt/tests/fmt/html/script-style-indent/example.override-script.snap index a617037..f60df9a 100644 --- a/markup_fmt/tests/fmt/html/script-style-indent/example.override-script.snap +++ b/markup_fmt/tests/fmt/html/script-style-indent/example.override-script.snap @@ -5,7 +5,7 @@ source: markup_fmt/tests/fmt.rs diff --git a/markup_fmt/tests/fmt/html/script-style-indent/example.style.snap b/markup_fmt/tests/fmt/html/script-style-indent/example.script-disabled.snap similarity index 100% rename from markup_fmt/tests/fmt/html/script-style-indent/example.style.snap rename to markup_fmt/tests/fmt/html/script-style-indent/example.script-disabled.snap diff --git a/markup_fmt/tests/fmt/html/script-style-indent/example.script-enabled.snap b/markup_fmt/tests/fmt/html/script-style-indent/example.script-enabled.snap new file mode 100644 index 0000000..f60df9a --- /dev/null +++ b/markup_fmt/tests/fmt/html/script-style-indent/example.script-enabled.snap @@ -0,0 +1,15 @@ +--- +source: markup_fmt/tests/fmt.rs +--- + + + + + + + + diff --git a/markup_fmt/tests/fmt/html/script-style-indent/example.script.snap b/markup_fmt/tests/fmt/html/script-style-indent/example.style-disabled.snap similarity index 100% rename from markup_fmt/tests/fmt/html/script-style-indent/example.script.snap rename to markup_fmt/tests/fmt/html/script-style-indent/example.style-disabled.snap diff --git a/markup_fmt/tests/fmt/html/script-style-indent/example.style-enabled.snap b/markup_fmt/tests/fmt/html/script-style-indent/example.style-enabled.snap new file mode 100644 index 0000000..f60df9a --- /dev/null +++ b/markup_fmt/tests/fmt/html/script-style-indent/example.style-enabled.snap @@ -0,0 +1,15 @@ +--- +source: markup_fmt/tests/fmt.rs +--- + + + + + + + + diff --git a/markup_fmt/tests/fmt/html/self-closing/fixture.default.snap b/markup_fmt/tests/fmt/html/self-closing/fixture.default.snap index 844f986..ceac932 100644 --- a/markup_fmt/tests/fmt/html/self-closing/fixture.default.snap +++ b/markup_fmt/tests/fmt/html/self-closing/fixture.default.snap @@ -5,7 +5,7 @@ source: markup_fmt/tests/fmt.rs
- + diff --git a/markup_fmt/tests/fmt/html/self-closing/fixture.html-normal-disabled.snap b/markup_fmt/tests/fmt/html/self-closing/fixture.html-normal-disabled.snap index 5c68453..319c932 100644 --- a/markup_fmt/tests/fmt/html/self-closing/fixture.html-normal-disabled.snap +++ b/markup_fmt/tests/fmt/html/self-closing/fixture.html-normal-disabled.snap @@ -5,7 +5,7 @@ source: markup_fmt/tests/fmt.rs
- + diff --git a/markup_fmt/tests/fmt/html/self-closing/fixture.html-normal-enabled.snap b/markup_fmt/tests/fmt/html/self-closing/fixture.html-normal-enabled.snap index ff294c4..296d85c 100644 --- a/markup_fmt/tests/fmt/html/self-closing/fixture.html-normal-enabled.snap +++ b/markup_fmt/tests/fmt/html/self-closing/fixture.html-normal-enabled.snap @@ -5,7 +5,7 @@ source: markup_fmt/tests/fmt.rs
- + diff --git a/markup_fmt/tests/fmt/html/self-closing/fixture.mathml-disabled.snap b/markup_fmt/tests/fmt/html/self-closing/fixture.mathml-disabled.snap index 72e30b6..3828a2a 100644 --- a/markup_fmt/tests/fmt/html/self-closing/fixture.mathml-disabled.snap +++ b/markup_fmt/tests/fmt/html/self-closing/fixture.mathml-disabled.snap @@ -5,7 +5,7 @@ source: markup_fmt/tests/fmt.rs
- + diff --git a/markup_fmt/tests/fmt/html/self-closing/fixture.mathml-enabled.snap b/markup_fmt/tests/fmt/html/self-closing/fixture.mathml-enabled.snap index cd501ac..5ad9cad 100644 --- a/markup_fmt/tests/fmt/html/self-closing/fixture.mathml-enabled.snap +++ b/markup_fmt/tests/fmt/html/self-closing/fixture.mathml-enabled.snap @@ -5,7 +5,7 @@ source: markup_fmt/tests/fmt.rs
- + diff --git a/markup_fmt/tests/fmt/html/self-closing/fixture.svg-disabled.snap b/markup_fmt/tests/fmt/html/self-closing/fixture.svg-disabled.snap index 4f413b3..cb933d0 100644 --- a/markup_fmt/tests/fmt/html/self-closing/fixture.svg-disabled.snap +++ b/markup_fmt/tests/fmt/html/self-closing/fixture.svg-disabled.snap @@ -5,7 +5,7 @@ source: markup_fmt/tests/fmt.rs
- + diff --git a/markup_fmt/tests/fmt/html/self-closing/fixture.svg-enabled.snap b/markup_fmt/tests/fmt/html/self-closing/fixture.svg-enabled.snap index 261e436..f788e7a 100644 --- a/markup_fmt/tests/fmt/html/self-closing/fixture.svg-enabled.snap +++ b/markup_fmt/tests/fmt/html/self-closing/fixture.svg-enabled.snap @@ -5,7 +5,7 @@ source: markup_fmt/tests/fmt.rs
- + diff --git a/markup_fmt/tests/fmt/html/self-closing/fixture.with-max-attrs-per-line.snap b/markup_fmt/tests/fmt/html/self-closing/fixture.with-max-attrs-per-line.snap index ff294c4..296d85c 100644 --- a/markup_fmt/tests/fmt/html/self-closing/fixture.with-max-attrs-per-line.snap +++ b/markup_fmt/tests/fmt/html/self-closing/fixture.with-max-attrs-per-line.snap @@ -5,7 +5,7 @@ source: markup_fmt/tests/fmt.rs
- + diff --git a/markup_fmt/tests/fmt/html/srcset/invalid.snap b/markup_fmt/tests/fmt/html/srcset/invalid.snap index 00ae76b..e7ece88 100644 --- a/markup_fmt/tests/fmt/html/srcset/invalid.snap +++ b/markup_fmt/tests/fmt/html/srcset/invalid.snap @@ -8,13 +8,13 @@ source: markup_fmt/tests/fmt.rs should-not-format 500w 200h " alt="" -/> +> +" alt=""> - + - + diff --git a/markup_fmt/tests/fmt/html/tags/tags.default.snap b/markup_fmt/tests/fmt/html/tags/tags.default.snap index 77f14d4..49b3b8d 100644 --- a/markup_fmt/tests/fmt/html/tags/tags.default.snap +++ b/markup_fmt/tests/fmt/html/tags/tags.default.snap @@ -1,22 +1,22 @@ --- source: markup_fmt/tests/fmt.rs --- -
-
-
-
-
+
+
+
+
+

-
-
+> +
+

+>
+>
+>
string
very very very very very very very very very very very very very very very @@ -120,8 +120,8 @@ source: markup_fmt/tests/fmt.rs *200 123 -
123456
+>123 +
123456

x

x

x

@@ -131,19 +131,19 @@ source: markup_fmt/tests/fmt.rs aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa > | -
+
-

+

-

+

-

+

-

+

" " is the property bound @@ -187,7 +187,7 @@ source: markup_fmt/tests/fmt.rs

Should not insert empty line before this div
- - - + + + diff --git a/markup_fmt/tests/fmt/html/tags/tags.ignore-whitespace.snap b/markup_fmt/tests/fmt/html/tags/tags.ignore-whitespace.snap index 3cc5e32..c55fe4d 100644 --- a/markup_fmt/tests/fmt/html/tags/tags.ignore-whitespace.snap +++ b/markup_fmt/tests/fmt/html/tags/tags.ignore-whitespace.snap @@ -1,22 +1,22 @@ --- source: markup_fmt/tests/fmt.rs --- -
-
-
-
-
+
+
+
+
+

-
-
+> +
+

+>
+>
+>
string
very very very very very very very very very very very very very very very @@ -120,9 +120,9 @@ source: markup_fmt/tests/fmt.rs *200 +> 123 -
123456
+
123456

x

x

x

@@ -133,25 +133,25 @@ source: markup_fmt/tests/fmt.rs > | -
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+

" " is the property bound @@ -198,7 +198,7 @@ source: markup_fmt/tests/fmt.rs

Should not insert empty line before this div
- - - + + + diff --git a/markup_fmt/tests/fmt/html/tags/tags.large-print-width.snap b/markup_fmt/tests/fmt/html/tags/tags.large-print-width.snap index 067cbd4..d941c27 100644 --- a/markup_fmt/tests/fmt/html/tags/tags.large-print-width.snap +++ b/markup_fmt/tests/fmt/html/tags/tags.large-print-width.snap @@ -1,17 +1,17 @@ --- source: markup_fmt/tests/fmt.rs --- -
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
string
very very very very very very very very very very very very very very very very long string
string
@@ -66,8 +66,8 @@ source: markup_fmt/tests/fmt.rs 789 *200 -123 -
123456
+123 +
123456

x

x

x

@@ -75,17 +75,17 @@ source: markup_fmt/tests/fmt.rs | -
+
-

+

-

+

-

+

-

+

" " is the property bound @@ -125,7 +125,7 @@ source: markup_fmt/tests/fmt.rs

Should not insert empty line before this div
- - - + + + diff --git a/markup_fmt/tests/fmt/html/tags/tags.small-print-width.snap b/markup_fmt/tests/fmt/html/tags/tags.small-print-width.snap index f629ee8..c47ab4b 100644 --- a/markup_fmt/tests/fmt/html/tags/tags.small-print-width.snap +++ b/markup_fmt/tests/fmt/html/tags/tags.small-print-width.snap @@ -2,31 +2,31 @@ source: markup_fmt/tests/fmt.rs ---
+>
+>
+>
+>
+>
+>
+>
+>
+>
+>
+>
string @@ -331,12 +331,12 @@ source: markup_fmt/tests/fmt.rs > 123 +>123
123456 + >456


+>

+>


+>
-

+

-

+

-

+

-

+

"" is the property bound title.

  • 12345678901234567890123456789012345678901234567890123456789012345678901234567890
  • Should not insert empty line before this div
    - - - + + + diff --git a/markup_fmt/tests/fmt/html/tags/tags2.default.snap b/markup_fmt/tests/fmt/html/tags/tags2.default.snap index 446b761..5cfabe2 100644 --- a/markup_fmt/tests/fmt/html/tags/tags2.default.snap +++ b/markup_fmt/tests/fmt/html/tags/tags2.default.snap @@ -20,8 +20,8 @@ source: markup_fmt/tests/fmt.rs
    before - - + + after
    diff --git a/markup_fmt/tests/fmt/html/tags/tags2.ignore-whitespace.snap b/markup_fmt/tests/fmt/html/tags/tags2.ignore-whitespace.snap index fff9312..68c45a7 100644 --- a/markup_fmt/tests/fmt/html/tags/tags2.ignore-whitespace.snap +++ b/markup_fmt/tests/fmt/html/tags/tags2.ignore-whitespace.snap @@ -21,8 +21,8 @@ source: markup_fmt/tests/fmt.rs
    before - - + + after
    diff --git a/markup_fmt/tests/fmt/html/tags/tags2.large-print-width.snap b/markup_fmt/tests/fmt/html/tags/tags2.large-print-width.snap index c1b0489..c927adb 100644 --- a/markup_fmt/tests/fmt/html/tags/tags2.large-print-width.snap +++ b/markup_fmt/tests/fmt/html/tags/tags2.large-print-width.snap @@ -9,8 +9,8 @@ source: markup_fmt/tests/fmt.rs
    before - - + + after
    diff --git a/markup_fmt/tests/fmt/html/tags/tags2.small-print-width.snap b/markup_fmt/tests/fmt/html/tags/tags2.small-print-width.snap index 7fb1d0e..dcb76d6 100644 --- a/markup_fmt/tests/fmt/html/tags/tags2.small-print-width.snap +++ b/markup_fmt/tests/fmt/html/tags/tags2.small-print-width.snap @@ -62,11 +62,11 @@ source: markup_fmt/tests/fmt.rs + > + > after
    beforedialog long long long long long long long long after
    -
    beforebeforeafter + >after
    before -const name = "world"; + const name = "world"; diff --git a/markup_fmt/tests/fmt/html/whitespace/fill.snap b/markup_fmt/tests/fmt/html/whitespace/fill.snap index cb47944..a7182f4 100644 --- a/markup_fmt/tests/fmt/html/whitespace/fill.snap +++ b/markup_fmt/tests/fmt/html/whitespace/fill.snap @@ -6,7 +6,7 @@ source: markup_fmt/tests/fmt.rs src="/images/pansies.jpg" alt="about fedco bottom image" style="float: left;" - /> + > We are a cooperative , one of the few seed companies so organized in the United States. Because we do not have an individual owner or beneficiary, profit is not our primary diff --git a/markup_fmt/tests/fmt/html/whitespace/snippets.snap b/markup_fmt/tests/fmt/html/whitespace/snippets.snap index 6679cc5..fa09061 100644 --- a/markup_fmt/tests/fmt/html/whitespace/snippets.snap +++ b/markup_fmt/tests/fmt/html/whitespace/snippets.snap @@ -13,18 +13,18 @@ source: markup_fmt/tests/fmt.rs - - - - - - - - - - - - + + + + + + + + + + + +
      
    @@ -33,10 +33,10 @@ source: markup_fmt/tests/fmt.rs        - - -    -     + + +    +       |  

    X @@ -44,24 +44,24 @@ source: markup_fmt/tests/fmt.rs

    X   or   Y

    diff --git a/markup_fmt/tests/fmt/svelte/attr-shorthand/fixture.default.snap b/markup_fmt/tests/fmt/svelte/attr-shorthand/fixture.default.snap index 550aa9c..8233eca 100644 --- a/markup_fmt/tests/fmt/svelte/attr-shorthand/fixture.default.snap +++ b/markup_fmt/tests/fmt/svelte/attr-shorthand/fixture.default.snap @@ -1,11 +1,11 @@ --- source: markup_fmt/tests/fmt.rs --- - - - - - + + + + + diff --git a/markup_fmt/tests/fmt/svelte/attr-shorthand/fixture.disabled.snap b/markup_fmt/tests/fmt/svelte/attr-shorthand/fixture.disabled.snap index 236605c..897188b 100644 --- a/markup_fmt/tests/fmt/svelte/attr-shorthand/fixture.disabled.snap +++ b/markup_fmt/tests/fmt/svelte/attr-shorthand/fixture.disabled.snap @@ -1,11 +1,11 @@ --- source: markup_fmt/tests/fmt.rs --- - - - - - + + + + + diff --git a/markup_fmt/tests/fmt/svelte/attr-shorthand/fixture.enabled.snap b/markup_fmt/tests/fmt/svelte/attr-shorthand/fixture.enabled.snap index de1a3b3..37d0348 100644 --- a/markup_fmt/tests/fmt/svelte/attr-shorthand/fixture.enabled.snap +++ b/markup_fmt/tests/fmt/svelte/attr-shorthand/fixture.enabled.snap @@ -1,11 +1,11 @@ --- source: markup_fmt/tests/fmt.rs --- - - - - - + + + + + diff --git a/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.default.snap b/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.default.snap index 550aa9c..8233eca 100644 --- a/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.default.snap +++ b/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.default.snap @@ -1,11 +1,11 @@ --- source: markup_fmt/tests/fmt.rs --- - - - - - + + + + + diff --git a/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.disabled.snap b/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.disabled.snap index 00aa8df..9b49843 100644 --- a/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.disabled.snap +++ b/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.disabled.snap @@ -1,11 +1,11 @@ --- source: markup_fmt/tests/fmt.rs --- - - - - - + + + + + diff --git a/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.enabled.snap b/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.enabled.snap index 3249c77..331145a 100644 --- a/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.enabled.snap +++ b/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.enabled.snap @@ -1,11 +1,11 @@ --- source: markup_fmt/tests/fmt.rs --- - - - - - + + + + + diff --git a/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.single-quote.snap b/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.single-quote.snap index e806f4e..2f751cc 100644 --- a/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.single-quote.snap +++ b/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.single-quote.snap @@ -1,11 +1,11 @@ --- source: markup_fmt/tests/fmt.rs --- - - - - - + + + + + diff --git a/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.strict.snap b/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.strict.snap index f582385..6a448a7 100644 --- a/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.strict.snap +++ b/markup_fmt/tests/fmt/svelte/directive-shorthand/fixture.strict.snap @@ -1,11 +1,11 @@ --- source: markup_fmt/tests/fmt.rs --- - - - - - + + + + + diff --git a/markup_fmt/tests/fmt/svelte/interpolation/long-mustache-value.snap b/markup_fmt/tests/fmt/svelte/interpolation/long-mustache-value.snap index 389905d..abffa65 100644 --- a/markup_fmt/tests/fmt/svelte/interpolation/long-mustache-value.snap +++ b/markup_fmt/tests/fmt/svelte/interpolation/long-mustache-value.snap @@ -4,7 +4,7 @@ source: markup_fmt/tests/fmt.rs +>

    Text with spaces inbetween should break at the most fitting point and not wait diff --git a/markup_fmt/tests/fmt/svelte/script-style-indent/config.toml b/markup_fmt/tests/fmt/svelte/script-style-indent/config.toml index 64ca51a..7cdda26 100644 --- a/markup_fmt/tests/fmt/svelte/script-style-indent/config.toml +++ b/markup_fmt/tests/fmt/svelte/script-style-indent/config.toml @@ -1,9 +1,17 @@ -[script] +[default] + +[script-enabled] scriptIndent = true -[style] +[script-disabled] +scriptIndent = false + +[style-enabled] styleIndent = true +[style-disabled] +styleIndent = false + [override-script] scriptIndent = false "svelte.scriptIndent" = true @@ -12,6 +20,6 @@ scriptIndent = false styleIndent = false "svelte.styleIndent" = true -[both] -scriptIndent = true -styleIndent = true +[both-disabled] +scriptIndent = false +styleIndent = false diff --git a/markup_fmt/tests/fmt/svelte/script-style-indent/fixture.both-disabled.snap b/markup_fmt/tests/fmt/svelte/script-style-indent/fixture.both-disabled.snap new file mode 100644 index 0000000..eb6cbd1 --- /dev/null +++ b/markup_fmt/tests/fmt/svelte/script-style-indent/fixture.both-disabled.snap @@ -0,0 +1,19 @@ +--- +source: markup_fmt/tests/fmt.rs +--- + + + + + + + + diff --git a/markup_fmt/tests/fmt/svelte/script-style-indent/fixture.both.snap b/markup_fmt/tests/fmt/svelte/script-style-indent/fixture.default.snap similarity index 100% rename from markup_fmt/tests/fmt/svelte/script-style-indent/fixture.both.snap rename to markup_fmt/tests/fmt/svelte/script-style-indent/fixture.default.snap diff --git a/markup_fmt/tests/fmt/svelte/script-style-indent/fixture.override-script.snap b/markup_fmt/tests/fmt/svelte/script-style-indent/fixture.override-script.snap index 589b868..ab6c533 100644 --- a/markup_fmt/tests/fmt/svelte/script-style-indent/fixture.override-script.snap +++ b/markup_fmt/tests/fmt/svelte/script-style-indent/fixture.override-script.snap @@ -3,7 +3,7 @@ source: markup_fmt/tests/fmt.rs --- @@ -14,6 +14,6 @@ source: markup_fmt/tests/fmt.rs a { text-decoration: none; } diff --git a/markup_fmt/tests/fmt/svelte/script-style-indent/fixture.style.snap b/markup_fmt/tests/fmt/svelte/script-style-indent/fixture.script-disabled.snap similarity index 100% rename from markup_fmt/tests/fmt/svelte/script-style-indent/fixture.style.snap rename to markup_fmt/tests/fmt/svelte/script-style-indent/fixture.script-disabled.snap diff --git a/markup_fmt/tests/fmt/vue/script-style-indent/fixture.script.snap b/markup_fmt/tests/fmt/svelte/script-style-indent/fixture.script-enabled.snap similarity index 82% rename from markup_fmt/tests/fmt/vue/script-style-indent/fixture.script.snap rename to markup_fmt/tests/fmt/svelte/script-style-indent/fixture.script-enabled.snap index 902f191..ab6c533 100644 --- a/markup_fmt/tests/fmt/vue/script-style-indent/fixture.script.snap +++ b/markup_fmt/tests/fmt/svelte/script-style-indent/fixture.script-enabled.snap @@ -1,17 +1,17 @@ --- source: markup_fmt/tests/fmt.rs --- - + + + + + + diff --git a/markup_fmt/tests/fmt/svelte/strict-attr/fixture.disabled.snap b/markup_fmt/tests/fmt/svelte/strict-attr/fixture.disabled.snap index 5516e2f..74b99e9 100644 --- a/markup_fmt/tests/fmt/svelte/strict-attr/fixture.disabled.snap +++ b/markup_fmt/tests/fmt/svelte/strict-attr/fixture.disabled.snap @@ -1,29 +1,29 @@ --- source: markup_fmt/tests/fmt.rs --- - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - + + + + + + + +

    diff --git a/markup_fmt/tests/fmt/svelte/strict-attr/fixture.enabled.snap b/markup_fmt/tests/fmt/svelte/strict-attr/fixture.enabled.snap index 6ccdc3c..1fb5361 100644 --- a/markup_fmt/tests/fmt/svelte/strict-attr/fixture.enabled.snap +++ b/markup_fmt/tests/fmt/svelte/strict-attr/fixture.enabled.snap @@ -1,29 +1,29 @@ --- source: markup_fmt/tests/fmt.rs --- - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - + + + + + + + +
    diff --git a/markup_fmt/tests/fmt/svelte/strict-attr/fixture.single-quote.snap b/markup_fmt/tests/fmt/svelte/strict-attr/fixture.single-quote.snap index 5db2191..721d257 100644 --- a/markup_fmt/tests/fmt/svelte/strict-attr/fixture.single-quote.snap +++ b/markup_fmt/tests/fmt/svelte/strict-attr/fixture.single-quote.snap @@ -1,29 +1,29 @@ --- source: markup_fmt/tests/fmt.rs --- - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - + + + + + + + +
    diff --git a/markup_fmt/tests/fmt/vue/bracket-same-line/vue.disabled.snap b/markup_fmt/tests/fmt/vue/bracket-same-line/vue.disabled.snap index 6116a4f..8ed384d 100644 --- a/markup_fmt/tests/fmt/vue/bracket-same-line/vue.disabled.snap +++ b/markup_fmt/tests/fmt/vue/bracket-same-line/vue.disabled.snap @@ -22,14 +22,14 @@ source: markup_fmt/tests/fmt.rs > + >
    text
    text - +
    diff --git a/markup_fmt/tests/fmt/vue/bracket-same-line/vue.enabled.snap b/markup_fmt/tests/fmt/vue/bracket-same-line/vue.enabled.snap index ac40208..0c90b47 100644 --- a/markup_fmt/tests/fmt/vue/bracket-same-line/vue.enabled.snap +++ b/markup_fmt/tests/fmt/vue/bracket-same-line/vue.enabled.snap @@ -18,15 +18,14 @@ source: markup_fmt/tests/fmt.rs long_long_attribute="long_long_long_long_long_long_long_long_long_long_long_value"> + long_long_attribute="long_long_long_long_long_long_long_long_long_long_long_value">
    text
    text - +
    diff --git a/markup_fmt/tests/fmt/vue/max-attrs-per-line/max-attrs-per-line.one.snap b/markup_fmt/tests/fmt/vue/max-attrs-per-line/max-attrs-per-line.one.snap index 5f3e448..7a923f6 100644 --- a/markup_fmt/tests/fmt/vue/max-attrs-per-line/max-attrs-per-line.one.snap +++ b/markup_fmt/tests/fmt/vue/max-attrs-per-line/max-attrs-per-line.one.snap @@ -30,16 +30,16 @@ source: markup_fmt/tests/fmt.rs Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    - + bar + > Lorem ipsum dolor sit amet, consectetur adipiscing elit. + > diff --git a/markup_fmt/tests/fmt/vue/max-attrs-per-line/max-attrs-per-line.two.snap b/markup_fmt/tests/fmt/vue/max-attrs-per-line/max-attrs-per-line.two.snap index 6984c5b..ba0d185 100644 --- a/markup_fmt/tests/fmt/vue/max-attrs-per-line/max-attrs-per-line.two.snap +++ b/markup_fmt/tests/fmt/vue/max-attrs-per-line/max-attrs-per-line.two.snap @@ -27,13 +27,13 @@ source: markup_fmt/tests/fmt.rs Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    - + - bar + bar Lorem ipsum dolor sit amet, consectetur adipiscing elit. + > diff --git a/markup_fmt/tests/fmt/vue/script-style-indent/config.toml b/markup_fmt/tests/fmt/vue/script-style-indent/config.toml index 1b57c05..984a3e1 100644 --- a/markup_fmt/tests/fmt/vue/script-style-indent/config.toml +++ b/markup_fmt/tests/fmt/vue/script-style-indent/config.toml @@ -1,8 +1,4 @@ -[script] -scriptIndent = true - -[style] -styleIndent = true +[default] [override-script] scriptIndent = false @@ -13,5 +9,5 @@ styleIndent = false "vue.styleIndent" = true [both] -scriptIndent = true -styleIndent = true +"vue.scriptIndent" = true +"vue.styleIndent" = true diff --git a/markup_fmt/tests/fmt/vue/script-style-indent/fixture.style.snap b/markup_fmt/tests/fmt/vue/script-style-indent/fixture.default.snap similarity index 88% rename from markup_fmt/tests/fmt/vue/script-style-indent/fixture.style.snap rename to markup_fmt/tests/fmt/vue/script-style-indent/fixture.default.snap index 163f34e..a0400a3 100644 --- a/markup_fmt/tests/fmt/vue/script-style-indent/fixture.style.snap +++ b/markup_fmt/tests/fmt/vue/script-style-indent/fixture.default.snap @@ -3,7 +3,7 @@ source: markup_fmt/tests/fmt.rs ---