emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling conversion of fields with spaces to tables


From: Loris Bennett
Subject: Re: Handling conversion of fields with spaces to tables
Date: Tue, 07 Dec 2021 08:09:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> On Monday,  6 Dec 2021 at 15:43, Loris Bennett wrote:
>> That's solves the problem of the field being split, but gives me the new
>> problem that the output is no longer a table :-)
>
> Ah, yes, sorry: you need to have each line of the output start with a
> "|" as well.  If your external script can do that, it should work.
>
> As in:
>
>   #+BEGIN_SRC sh :results output raw
>   echo "|marie|Curie|123"
>   echo "|louis|De Broglie|456"
>   #+END_SRC
>
>   #+RESULTS:
>   | marie | Curie      | 123 |
>   | louis | De Broglie | 456 |

For what ever reason, the external script has an option to add "|" at
the end of each line, but not at the beginning.  However, I can just
pipe the output through 'sed' to get one at the beginning, so all is
well.

Thanks for the help!

Cheers,

Loris
-- 
This signature is currently under construction.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]