all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* xml.el incorrectly parses empty elements
@ 2003-05-15  6:53 Mark A. Hershberger
  0 siblings, 0 replies; only message in thread
From: Mark A. Hershberger @ 2003-05-15  6:53 UTC (permalink / raw)



xml.el parses

    <this/>       ----> (this nil (""))

And

    <this></this> ----> (this nil)

Folling patch fixes the first one to match the second.

*** xml.el.~1.7.4.1.~	Sat May  3 17:17:43 2003
--- xml.el	Thu May 15 01:45:46 2003
***************
*** 227,233 ****
  	  (progn
  	    (forward-char 2)
  	    (skip-chars-forward " \t\n")
! 	    (append children '("")))
  
  	;; is this a valid start tag ?
  	(if (eq (char-after) ?>)
--- 227,233 ----
  	  (progn
  	    (forward-char 2)
  	    (skip-chars-forward " \t\n")
! 	    (append children nil))
  
  	;; is this a valid start tag ?
  	(if (eq (char-after) ?>)


-- 
As long as you have mystery you have health; when you destroy mystery
you create morbidity.			     -- G.K. Chesterson

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-15  6:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-15  6:53 xml.el incorrectly parses empty elements Mark A. Hershberger

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.