![](https://secure.gravatar.com/avatar/7698ca8517c6b0d840c3eb065bceca3d.jpg?s=120&d=mm&r=g)
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