Commit 9ad42bd3 by Eric Coissac

add possibility to create empty tags with the XML_empty_tag function

parent 35856e2d
......@@ -716,6 +716,12 @@ count is reached.
XML_tag_data <TAG> <VALUES>
```
#### XML_empty_tag
```{shell}
XML_empty_tag <TAG>
```
#### XML_data
```{shell}
......
......@@ -69,6 +69,16 @@ function XML_tag_data() {
}
function XML_empty_tag() {
local tag=$1
shift
__LECABASH__XML_pad__ $(stacksize __LECABASH__markup__)
echo "<${tag}/>"
}
function XML_data() {
__LECABASH__XML_pad__ $(stacksize __LECABASH__markup__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment