From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11042 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: Extraneous spaces in XML documents Date: Fri, 14 Feb 2003 21:17:20 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <20030214201720.GB1708@scaprea> References: <20030210025825.F22427%05570575@gmx.de> <20030210220515.GB3325@scaprea> <20030211133050.13232F3%05570575@freeuk.com> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045255991 4869 80.91.224.249 (14 Feb 2003 20:53:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2003 20:53:11 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18jmpa-0001GO-00 for ; Fri, 14 Feb 2003 21:53:10 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id CDC1610AE9; Fri, 14 Feb 2003 21:55:26 +0100 (MET) Original-Received: from hgatenl.hobby.nl (ns.hobby.nl [212.72.224.8]) by ref.ntg.nl (Postfix) with ESMTP id 8CD9910AE7 for ; Fri, 14 Feb 2003 21:53:42 +0100 (MET) Original-Received: from hgatenl.hobby.nl (localhost [127.0.0.1]) by hgatenl.hobby.nl (8.12.6/8.12.2) with ESMTP id h1EKrgWG096178 for ; Fri, 14 Feb 2003 21:53:42 +0100 (CET) (envelope-from spepping@scaprea.hobby.nl) Original-Received: (from uucp@localhost) by hgatenl.hobby.nl (8.12.6/8.12.2/Submit) with UUCP id h1EKrffJ096177 for ntg-context@ntg.nl; Fri, 14 Feb 2003 21:53:41 +0100 (CET) Original-Received: from simon by scaprea.salix.nl with local (Exim 3.35 #1 (Debian)) id 18jmGu-0000qn-00; Fri, 14 Feb 2003 21:17:20 +0100 Original-To: ntg-context@ntg.nl Mail-Followup-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: <20030211133050.13232F3%05570575@freeuk.com> User-Agent: Mutt/1.3.28i Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11042 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11042 On Tue, Feb 11, 2003 at 01:30:50PM +0000, Robbie Pickering wrote: > Simon Pepping wrote: > >You should use \ignorespaces in the end tag. Unfortunately, > >\defineXMLargument does not allow you to define the action for the end > >tag. This would work: > > > >\defineXMLenvironmentsave [comment] {} {\ignorespaces} > > > >The save action gobbles the content as well. > > > >Regards, Simon > > > > Thanks. > Is this conceptually different to writing > > \def\gobble#1{\ignorespaces} > \defineXMLargument [comment] \gobble No, that seems to be the same thing, and a good way to do it. I missed that. > It seems to have the effect of also devouring the necessary space after > a full stop, if the comment tag comes directly after it in the source: > > Makes complicated pages by starting.This is not a proper > sentence. With simple ... > > The space after the comment, before "With" should get into the final > document, but doesn't make it. (on the other hand, this also happens > when the comments are shown with Yea, that is the problem. If you remove the spaces, you do it everywhere. I think it would be a better solution if you write your document carefully, and not gobble the spaces: Makes complicated pages by starting. This is not a proper sentence. With simple ... Simon -- Simon Pepping email: spepping@scaprea.hobby.nl