From: Wiktor Kwapisiewicz <wiktor@metacode.biz>
To: emacs-orgmode@gnu.org
Subject: Influence the table separator in a code block
Date: Tue, 13 Jul 2021 12:06:51 +0200 [thread overview]
Message-ID: <8735sisf2c.fsf@metacode.biz> (raw)
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
next reply other threads:[~2021-07-13 10:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-13 10:06 Wiktor Kwapisiewicz [this message]
2021-07-14 3:27 ` Influence the table separator in a code block Greg Minshall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8735sisf2c.fsf@metacode.biz \
--to=wiktor@metacode.biz \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).