1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(xml-parse-tag): Return (foo nil) rather than (foo nil "")

for <foo/>, to make it behave like <foo></foo>.
This commit is contained in:
Stefan Monnier 2003-05-30 16:02:26 +00:00
parent e251428378
commit aba7ce7740

View 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) ?>)