]> gitweb.factorcode.org Git - factor.git/commitdiff
xml.data: fix issue with empty tags not being printed use shortened <tag/> format.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 1 Mar 2015 00:00:00 +0000 (16:00 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 1 Mar 2015 00:00:00 +0000 (16:00 -0800)
basis/xml/data/data.factor

index 71d5946f61a44d881c67c8e8041e8e55e571d1c4..27f2d5a00faf6b28c2eae034ff52ad22855ff75e 100644 (file)
@@ -214,8 +214,8 @@ M: xml like
 : <contained-tag> ( name attrs -- tag )
     f <tag> ;
 
-PREDICATE: contained-tag < tag children>> not ;
-PREDICATE: open-tag < tag children>> ;
+PREDICATE: contained-tag < tag children>> empty? ;
+PREDICATE: open-tag < tag children>> empty? not ;
 
 TUPLE: unescaped string ;
 C: <unescaped> unescaped