aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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