all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Influence the table separator in a code block
@ 2021-07-13 10:06 Wiktor Kwapisiewicz
  2021-07-14  3:27 ` Greg Minshall
  0 siblings, 1 reply; 2+ messages in thread
From: Wiktor Kwapisiewicz @ 2021-07-13 10:06 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-14  3:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-13 10:06 Influence the table separator in a code block Wiktor Kwapisiewicz
2021-07-14  3:27 ` Greg Minshall

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.