diff --git a/markup_fmt/src/printer.rs b/markup_fmt/src/printer.rs index c12e984..406390b 100644 --- a/markup_fmt/src/printer.rs +++ b/markup_fmt/src/printer.rs @@ -36,7 +36,7 @@ impl<'s> DocGen<'s> for Comment<'s> { Doc::text(" + + diff --git a/markup_fmt/tests/fmt/html/format-comments/comments.html b/markup_fmt/tests/fmt/html/format-comments/comments.html index 159e0d9..0962927 100644 --- a/markup_fmt/tests/fmt/html/format-comments/comments.html +++ b/markup_fmt/tests/fmt/html/format-comments/comments.html @@ -5,5 +5,11 @@ + + diff --git a/markup_fmt/tests/fmt/jinja/comments/fixture.disabled.snap b/markup_fmt/tests/fmt/jinja/comments/fixture.disabled.snap index 2d8c3c2..a8c5d50 100644 --- a/markup_fmt/tests/fmt/jinja/comments/fixture.disabled.snap +++ b/markup_fmt/tests/fmt/jinja/comments/fixture.disabled.snap @@ -8,6 +8,12 @@ source: markup_fmt/tests/fmt.rs {# This is a comment #} {#This is a very very very very very very very very very very very very long comment#} {# This is a very very very very very very very very very very very very long comment #} + + {# note: commented-out template because we no longer use this + {% for user in users %} + ... + {% endfor %} + #} diff --git a/markup_fmt/tests/fmt/jinja/comments/fixture.enabled.snap b/markup_fmt/tests/fmt/jinja/comments/fixture.enabled.snap index 5a2e6c5..8c0ba0f 100644 --- a/markup_fmt/tests/fmt/jinja/comments/fixture.enabled.snap +++ b/markup_fmt/tests/fmt/jinja/comments/fixture.enabled.snap @@ -12,6 +12,13 @@ source: markup_fmt/tests/fmt.rs {# This is a very very very very very very very very very very very very long comment #} + + {# + note: commented-out template because we no longer use this + {% for user in users %} + ... + {% endfor %} + #} diff --git a/markup_fmt/tests/fmt/jinja/comments/fixture.jinja b/markup_fmt/tests/fmt/jinja/comments/fixture.jinja index cf639f2..9c91230 100644 --- a/markup_fmt/tests/fmt/jinja/comments/fixture.jinja +++ b/markup_fmt/tests/fmt/jinja/comments/fixture.jinja @@ -5,5 +5,11 @@ {# This is a comment #} {#This is a very very very very very very very very very very very very long comment#} {# This is a very very very very very very very very very very very very long comment #} + + {# note: commented-out template because we no longer use this + {% for user in users %} + ... + {% endfor %} + #}