27 Jun
2011
27 Jun
'11
7:41 a.m.
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