ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Simon Pepping <spepping@scaprea.hobby.nl>
Subject: Re: Extraneous spaces in XML documents
Date: Fri, 14 Feb 2003 21:17:20 +0100	[thread overview]
Message-ID: <20030214201720.GB1708@scaprea> (raw)
In-Reply-To: <20030211133050.13232F3%05570575@freeuk.com>

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.<comment>This is not a proper
> sentence.</comment> 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. <comment>This is not a proper
sentence. </comment>With simple ...

Simon

-- 
Simon Pepping
email: spepping@scaprea.hobby.nl

      parent reply	other threads:[~2003-02-14 20:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-10  2:58 Robbie Pickering
2003-02-10  9:26 ` Hans Hagen
2003-02-10 18:11   ` Robbie Pickering
2003-02-10 22:05 ` Simon Pepping
2003-02-11 13:30   ` Robbie Pickering 
2003-02-11 20:18     ` Hans Hagen
2003-02-14 20:17     ` Simon Pepping [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030214201720.GB1708@scaprea \
    --to=spepping@scaprea.hobby.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).