![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
On Mon, Jun 27 2011, Kip Warner wrote:
Is there any way to remove the trailing space that appears to be automatically inserted when \cldcontext output is captured? For instance,
Bazaar revision \cldcontext{os.resultof"bzr revno"}.
Will show "Bazaar revision 43 ."
I've manually checked the output of the command to run and it doesn't appear to add that space character itself, so I am wondering if os.resultof is appending the extraneous space?
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 -- Peter