]> git.eshelyaron.com Git - emacs.git/commitdiff
(xml-parse-tag): Return (foo nil) rather than (foo nil "")
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 30 May 2003 16:02:26 +0000 (16:02 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 30 May 2003 16:02:26 +0000 (16:02 +0000)
for <foo/>, to make it behave like <foo></foo>.

lisp/xml.el

index 01d1afa3b051dc5b05f31e7fc65076ced2325b93..8af708335b4fba66210b26f4cedbe8d8465e74c0 100644 (file)
@@ -274,9 +274,7 @@ Returns one of:
       (if (looking-at "/>")
          (progn
            (forward-char 2)
-           ;; Fixme:  Inconsistent with the nil content returned from
-           ;; `<tag></tag>'.
-           (nreverse (cons '("") children)))
+           (nreverse children))
 
        ;; is this a valid start tag ?
        (if (eq (char-after) ?>)