diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-10-02 13:19:53 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-10-02 13:19:53 +0200 |
commit | 01f27f6ee3dad6f25cecc27e7051380644733066 (patch) | |
tree | aa77e1c40b33a1404865c65cb04a4911c9c7f6e1 /gsp.5 | |
parent | cb28ba4452d4902e6abf7c714d9e66466357d06e (diff) |
Detail how to have empty non-void tagsv1.0.1
Diffstat (limited to 'gsp.5')
-rw-r--r-- | gsp.5 | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |