On 27-6-2011 9:41, Kip Warner wrote:
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.
or \cldcontext{string.strip(os.resultof("echo -n 123"))} etc ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------