From 1f83fa89d8585b1fa59df7a400157f8df93ff681 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 1 Nov 2023 16:38:49 +0100 Subject: Remove the ‘>’ prefix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rationale was explained on the mailing list[1]. [1]: https://paste.thomasvoss.com/353 --- formatter/formatter_test.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'formatter/formatter_test.go') diff --git a/formatter/formatter_test.go b/formatter/formatter_test.go index c5f0b83..4fe8035 100644 --- a/formatter/formatter_test.go +++ b/formatter/formatter_test.go @@ -35,14 +35,14 @@ func restoreAndCapture() string { func TestPrintAst(t *testing.T) { s := ` html lang="en" { - >head attr { - >title {- + head attr { + title {- My Website } meta .→{} x="y"{} } - >body { - >div #some-id {} + body { + div #some-id {} div key="val" .class-1 .class-2 { p {- This is some @em{-emphatic} text } } @@ -52,11 +52,7 @@ func TestPrintAst(t *testing.T) { }` result := ` My Website - - -
-

This is some emphatic text

-` +

This is some emphatic text

` // Write the source to a temp file r := strings.NewReader(s) -- cgit v1.2.3