emacs-orgmode
[Top][All Lists]
Advanced

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

[O] orgtbl-to-generic with lfmt (wrong usage or bug)


From: Gerhard
Subject: [O] orgtbl-to-generic with lfmt (wrong usage or bug)
Date: Thu, 21 Mar 2013 16:48:46 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3

Hi,

I was happy to find out about the possibility to convert a table into something else, but I struggle with obtaining a particular result. I have addresses in a table and want them to be formatted for printing. This is where I am so far.

#+ORGTBL: SEND sofar orgtbl-to-generic :lfmt "%s"
| Vorname | Nachname   | Straße          |   PLZ | Ort         |
|---------+------------+-----------------+-------+-------------|
| Karl    | Mustermann | Musterstraße 10 | 12345 | Musterstadt |
| Sofie   | Musterfrau | Ortsstraße 2    | 54321 | Meinestadt  |

#+BEGIN RECEIVE ORGTBL sofar
(Vorname Nachname Straße PLZ Ort)
(Karl Mustermann Musterstraße 10 12345 Musterstadt)
(Sofie Musterfrau Ortsstraße 2 54321 Meinestadt)
#+END RECEIVE ORGTBL sofar

But I would like to have

#+BEGIN RECEIVE ORGTBL wished
Vorname Nachname
Straße
PLZ Ort

Karl Mustermann
Musterstraße 10
12345 Musterstadt

Sofie Musterfrau
Ortsstraße 2
54321 Meinestadt
#+END RECEIVE ORGTBL wished

Here (http://www.canonical.org/~kragen/tmp/org-mode-notes) kragen says, that it works in orgtbl-mode but not in org-mode.

I would be happy, if you could tell me a way to get what I want. But I think also, that the help text on :lfmt in "orgtbl-to-generic" doesn't say what happens in my case, so there might be a bug.

:lfmt       Format for entire line, with enough %s to capture all fields.
            If this is present, :lstart, :lend, and :sep are ignored.

Regards
Gerhard




reply via email to

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