On Mon, 2011-06-27 at 07:23 +0200, Peter Münster wrote:
> It adds a newline, that's like a space. See this example:
> 
> \starttext
> Bazaar revision \cldcontext{os.resultof"echo 123"}.
> 
> Bazaar revision \cldcontext{os.resultof"echo -n 123"}.
> 
> Bazaar revision \cldcontext{os.resultof"dummy=`bzr revno`; echo -n $dummy"}.
> 
> Bazaar revision \cldcontext{os.resultof"bzr revno | tr -d '\\n'"}.
> \stoptext

Hey Peter. The tr -d method I found to be the most elegant. Thank you.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

Attachment: signature.asc
Description: This is a digitally signed message part

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to