From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6247 Path: main.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: xml comments Date: Tue, 27 Nov 2001 09:37:41 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <20011127093741.6f948a32.taco@elvenkind.com> References: <200111261420.fAQEK8v07913@sol.cs.uni-dortmund.de> <5.1.0.14.1.20011126160618.03f57fe0@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035396785 8856 80.91.224.250 (23 Oct 2002 18:13:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:13:05 +0000 (UTC) Cc: gundlach@irb.cs.uni-dortmund.de, ntg-context@ntg.nl Original-To: "Hans Hagen" In-Reply-To: <5.1.0.14.1.20011126160618.03f57fe0@server-1> Xref: main.gmane.org gmane.comp.tex.context:6247 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6247 "Hans Hagen" wrote: > At 03:20 PM 11/26/2001 +0100, Patrick Gundlach wrote: > >Hi, > > > >xml comments have a bug (!?): spaces are critical at the > >beginning of a comment. > > you may try (and play with): > > \long\def\xparseXMLescape !#1#2#3{\parseXMLescape{#1#2}#3} Adding #3 is safe, sort of. is a valid comment (although very unlikely to appear). The string "" is actually a comment that starts with a space. The comment itself in this case is: " crap ". It is possible to take advantage of the fact that '{} \def\doxparseXMLescape#1 {\parseXMLescape{#1}} -- groeten, Taco