ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* trailing spaces in macro argument
@ 2011-07-26 19:22 Daniel Schopper
  2011-07-26 20:25 ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Schopper @ 2011-07-26 19:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,
could anyone be so kind to explain to me why in the following MWE the 
trailing space are missing in the output of the \test-macro? I’m kind of 
puzzled as I supposed it wouldn’t be possible for \stopline to influence 
the behaviour of its preceding tokens. apologies for what's probably a 
most straight-forward question to many of you…

\def\test#1{%
	\startline[line:0]%
	\pagereference[page:0]%
	{#1}%
	\stopline[line:0]%D commenting this out makes the trailing spaces in 
the argument appear as expected.
}
\starttext
\startlinenumbering
One \test{ two three }four
\stoplinenumbering
\stoptext

Thanks!
Daniel
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-07-27  8:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-26 19:22 trailing spaces in macro argument Daniel Schopper
2011-07-26 20:25 ` Wolfgang Schuster
2011-07-26 20:57   ` Daniel Schopper
2011-07-26 21:04     ` Wolfgang Schuster
2011-07-26 21:28       ` Daniel Schopper
2011-07-27  8:47         ` Wolfgang Schuster

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).