[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Influence the table separator in a code block
From: |
Wiktor Kwapisiewicz |
Subject: |
Influence the table separator in a code block |
Date: |
Tue, 13 Jul 2021 12:06:51 +0200 |
Hello,
I'm using #+BEGIN_SRC sh code blocks and org-mode nicely renders the
output as a table:
#+BEGIN_SRC sh
echo FIRST SECOND THIRD
echo first second third
#+END_SRC
#+RESULTS:
| FIRST | SECOND | THIRD |
| first | second | third |
And this is very nice. Unfortunately the autodetection breaks when any
item contains a comma (,):
#+BEGIN_SRC sh
echo FIRST SECOND THIRD
echo first second third,d
#+END_SRC
#+RESULTS:
| FIRST SECOND THIRD | |
| first second third | d |
I tried to force org to use spaces by using "sep". Unfortunately this
doesn't work:
#+BEGIN_SRC sh :sep " "
echo FIRST SECOND THIRD
echo first second third,d
#+END_SRC
#+RESULTS:
| FIRST SECOND THIRD | |
| first second third | d |
Is there a way to force org to split on spaces even when commas are in
the output?
Thank you in advance for help!
Kind regards,
Wiktor
- Influence the table separator in a code block,
Wiktor Kwapisiewicz <=