summaryrefslogtreecommitdiff
path: root/tests/activeEmpty.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2014-04-21 12:09:58 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2014-04-21 12:09:58 -0400
commitc3d2041bb380b3a576564419fc9a9386a98e75b7 (patch)
tree4371c9a659e2c168f1c573831e9ebe42a4fd7397 /tests/activeEmpty.ur
parent052a3c80512fd8c99163f921d53b51800c402ff6 (diff)
Change <active> to avoid generating an empty <span> for empty content
Diffstat (limited to 'tests/activeEmpty.ur')
-rw-r--r--tests/activeEmpty.ur5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/activeEmpty.ur b/tests/activeEmpty.ur
new file mode 100644
index 00000000..4c089899
--- /dev/null
+++ b/tests/activeEmpty.ur
@@ -0,0 +1,5 @@
+fun main () : transaction page = return <xml><body>
+ <active code={alert "Howdy, neighbor!"; return <xml/>}/>
+ <hr/>
+ <active code={return <xml>This one <b>ain't</b> empty.</xml>}/>
+</body></xml>