When using the result of another code block i find i want to transform the value slightly before using it, in particular I want to trim off a newline. I have a feeling this ought to be a common case, but I can't find any information on how to do it.

For instance, in something like this, where bar refers to another (named) block and thus has a trailing newline.

```

+header: :var foo=bar

+begin_src http :pretty

POST http://localhost:3000/api/${too}/run

+end_src

```

submitted by /u/magthe0
[link] [comments]