On 2016-07-10 at 13:18, Eric Abrahamsen <e...@ericabrahamsen.net> wrote: > Ken Mankoff <mank...@gmail.com> writes: > >> I've just discovered that when Org results are returned in a table, >> they are modified in that leading 0s are removed. Is this a feature? A >> bug? Is there a workaround for this? Leading 0s are not removed if the >> result is a string, but in many cases a string of numbers is still a >> string and should retain those 0s. > > Maybe you can use a format specifier for that column, so the > zero-padding is retained?
Maybe. Can you provide an example? Adding a #+TBLFM: after the table doesn't do it, and I'm not sure how to specify result formatting at this level of detail in babel header block arguments. -k. #+BEGIN_SRC sh :results table echo "0042" #+END_SRC #+RESULTS: | 42 | #+TBLFM: @1=@1;N