From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26792 Path: news.gmane.org!not-for-mail From: Johannes Graumann Newsgroups: gmane.comp.tex.context Subject: Re: XML element strip? Date: Tue, 04 Apr 2006 17:44:19 -0700 Organization: Die Guten Message-ID: References: <4432E8FF.6060308@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1144198073 9189 80.91.229.2 (5 Apr 2006 00:47:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Apr 2006 00:47:53 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 05 02:47:47 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FQwBN-0003lC-2W for gctc-ntg-context-518@m.gmane.org; Wed, 05 Apr 2006 02:47:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4CF43127B5; Wed, 5 Apr 2006 02:47:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00824-05; Wed, 5 Apr 2006 02:47:31 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9190D127B1; Wed, 5 Apr 2006 02:47:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BC3A2127B1 for ; Wed, 5 Apr 2006 02:47:30 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00795-07 for ; Wed, 5 Apr 2006 02:47:28 +0200 (CEST) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with SMTP id 681C4127A8 for ; Wed, 5 Apr 2006 02:47:28 +0200 (CEST) Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FQwB8-0003dN-Ov for ntg-context@ntg.nl; Wed, 05 Apr 2006 02:47:22 +0200 Original-Received: from iluvatar.caltech.edu ([131.215.35.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Apr 2006 02:47:22 +0200 Original-Received: from johannes_graumann by iluvatar.caltech.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Apr 2006 02:47:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ntg.nl Original-Lines: 44 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: iluvatar.caltech.edu User-Agent: KNode/0.10.2 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:26792 Archived-At: As always: thanks to the Wiz! Joh Hans Hagen wrote: > Johannes Graumann wrote: >> Hello, >> >> I have a strange question. While working with XML and ConTeXt, I have run >> into the TeXnic problem of the interpretation of line breaks. What I >> would prefer to do for code clarity sake are things like the following: >> >> >> Something >> >> >> else >> >> >> >> This is however screwed up by TeXs line break interpretation, forcing me >> to format the input like so: >> >> Something >> else >> >> >> The question now is: is there any way to tell context to strip trailing >> whitespaces/line breaks from XML nodes? >> > \defineXMLenvironment > [item] > {...\ignorespaces} > {\removeunwantedspaces ...} > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > -----------------------------------------------------------------