From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10938 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: Extraneous spaces in XML documents Date: Mon, 10 Feb 2003 23:05:15 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <20030210220515.GB3325@scaprea> References: <20030210025825.F22427%05570575@gmx.de> 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 1044914819 22884 80.91.224.249 (10 Feb 2003 22:06:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2003 22:06:59 +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 18iM4m-0005wo-00 for ; Mon, 10 Feb 2003 23:06:56 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 3C2FF10B13; Mon, 10 Feb 2003 23:09:06 +0100 (MET) Original-Received: from hgatenl.hobby.nl (ns.hobby.nl [212.72.224.8]) by ref.ntg.nl (Postfix) with ESMTP id 7A56310AEC for ; Mon, 10 Feb 2003 23:07:40 +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 h1AM7eWG042461 for ; Mon, 10 Feb 2003 23:07:40 +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 h1AM7dxJ042460 for ntg-context@ntg.nl; Mon, 10 Feb 2003 23:07:39 +0100 (CET) Original-Received: from simon by scaprea.salix.nl with local (Exim 3.35 #1 (Debian)) id 18iM39-00014J-00; Mon, 10 Feb 2003 23:05:15 +0100 Original-To: ntg-context@ntg.nl Mail-Followup-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: <20030210025825.F22427%05570575@gmx.de> 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:10938 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10938 On Mon, Feb 10, 2003 at 02:58:25AM +0000, Robbie Pickering wrote: > > I'm typesetting some XML text with comments in and for the working > version the comments are to go in the margin. For the final version the > comments are simply to be ignored. > > In the end result there is a noticeably larger space between the words > where the comma had been. Apparently more than one space is reaching > TeX's stomach, though it's beyond me to work out how. > > \defineXMLargument [comment] \gobble 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 -- Simon Pepping email: spepping@scaprea.hobby.nl