[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Babel trims leading 0s for certain numbers of tables
From: |
Ken Mankoff |
Subject: |
Re: [O] Babel trims leading 0s for certain numbers of tables |
Date: |
Sun, 10 Jul 2016 09:35:06 -0400 |
User-agent: |
mu4e 0.9.17; emacs 25.0.95.1 |
On 2016-07-10 at 13:18, Eric Abrahamsen <address@hidden> wrote:
> Ken Mankoff <address@hidden> 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: @address@hidden;N