aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-10-02 13:19:53 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-10-02 13:19:53 +0200
commit01f27f6ee3dad6f25cecc27e7051380644733066 (patch)
treeaa77e1c40b33a1404865c65cb04a4911c9c7f6e1
parentcb28ba4452d4902e6abf7c714d9e66466357d06e (diff)
Detail how to have empty non-void tagsv1.0.1
-rw-r--r--gsp.511
1 files changed, 10 insertions, 1 deletions
diff --git a/gsp.5 b/gsp.5
index ae04f0a..96d8ae6 100644
--- a/gsp.5
+++ b/gsp.5
@@ -1,4 +1,4 @@
-.Dd $Mdocdate: September 11 2023 $
+.Dd $Mdocdate: October 2 2023 $
.Dt GSP 5
.Os
.Sh NAME
@@ -85,6 +85,15 @@ with two empty div-nodes as children:
.Bd -literal -offset indent
footer foo bar { div{} div{} }
.Ed
+.Pp
+When compiling an empty node
+.Ql foo{} ,
+you get the result
+.Ql <foo> .
+If you want both an opening- and closing tag with no children, such as in
+.Ql <foo></foo> ,
+then you can use an empty text-node as in
+.Ql foo{-} .
.Ss Node names
Node names follow the exact same naming rules as names do in XML.
See the XML reference in