aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2003-05-30 16:02:26 +0000
committerStefan Monnier2003-05-30 16:02:26 +0000
commitaba7ce7740c06a33789322ab664a03638d549aff (patch)
treed382d64177cba0d0d6294c49784e23c05db6730d
parente251428378764fd025100dd6151ece9bd17000c7 (diff)
downloademacs-aba7ce7740c06a33789322ab664a03638d549aff.tar.gz
emacs-aba7ce7740c06a33789322ab664a03638d549aff.zip
(xml-parse-tag): Return (foo nil) rather than (foo nil "")
for <foo/>, to make it behave like <foo></foo>.
-rw-r--r--lisp/xml.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/xml.el b/lisp/xml.el
index 01d1afa3b05..8af708335b4 100644
--- a/lisp/xml.el
+++ b/lisp/xml.el
@@ -274,9 +274,7 @@ Returns one of:
274 (if (looking-at "/>") 274 (if (looking-at "/>")
275 (progn 275 (progn
276 (forward-char 2) 276 (forward-char 2)
277 ;; Fixme: Inconsistent with the nil content returned from 277 (nreverse children))
278 ;; `<tag></tag>'.
279 (nreverse (cons '("") children)))
280 278
281 ;; is this a valid start tag ? 279 ;; is this a valid start tag ?
282 (if (eq (char-after) ?>) 280 (if (eq (char-after) ?>)