emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Preventing RESULTS from being formatted as org table [ob-awk]


From: Kaushal Modi
Subject: [O] Preventing RESULTS from being formatted as org table [ob-awk]
Date: Sun, 12 Jun 2016 06:46:31 +0000

Hi,

I am running the latest builds of emacs-25 branch and org master branch.

I used ob-awk for the first time today and was surprised to see that the #+RESULTS: were displayed as org tables. I do not know if that is due to ob-awk or ob-core and so am posting it here.

Here is the minimum working example:

(1) Launch emacs -Q
(2) Create a test.txt file with the below contents (without the ===== lines of course):

===== test.txt =====
emacs    25.0.95
org-mode 8.3.4
=====

(3) Eval (require 'ob-awk)
(4) Create this test.org file

===== test.org =====
#+BEGIN_SRC awk :in-file test.txt :exports both
{ print "My", $1, "version is", $2, "."}
#+END_SRC
=====

(5) Now with point in that src block, hit C-c C-c, answer "yes" to the babel eval query, and you will get the below result!

#+RESULTS:
| My | emacs    | version | is | 25.0.95 | . |
| My | org-mode | version | is |   8.3.4 | . |

So how can I generate the result as one would normally see by running awk in the terminal, without the additional org-table pipe characters?
--

--
Kaushal Modi


reply via email to

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