aboutsummaryrefslogtreecommitdiff
path: root/formatter
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-10-28 02:23:11 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-10-28 02:23:11 +0200
commit04b07b3715a815f0140d870fb88a6822f06cf5cb (patch)
tree633b92a23a37802aae83d5f5cd6047164500ab65 /formatter
parent024cd373e052db4193343b1eeb0767df98d7ea1e (diff)
Allow for true HTML ID- and class shorthandsv2.0.0
Diffstat (limited to 'formatter')
-rw-r--r--formatter/formatter_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/formatter/formatter_test.go b/formatter/formatter_test.go
index fe3af4d..c5f0b83 100644
--- a/formatter/formatter_test.go
+++ b/formatter/formatter_test.go
@@ -39,10 +39,10 @@ func TestPrintAst(t *testing.T) {
>title {-
My Website
}
- meta x="y"{}
+ meta .→{} x="y"{}
}
>body {
- >div #some-id{}
+ >div #some-id {}
div key="val" .class-1 .class-2 {
p {- This is some @em{-emphatic} text }
}
@@ -53,7 +53,7 @@ func TestPrintAst(t *testing.T) {
result := `<html lang="en"><head attr><title>
My Website
</title>
-<meta x="y"></head>
+<meta class="→{}" x="y"></head>
<body><div id="some-id">
<div class="class-1 class-2" key="val"><p> This is some <em>emphatic</em> text </p></div><tags key="Some long value"></body>
</html>`