emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Gerhard <gsqual@gmail.com>
To: emacs-orgmode@gnu.org
Subject: orgtbl-to-generic with lfmt (wrong usage or bug)
Date: Thu, 21 Mar 2013 16:48:46 +0100	[thread overview]
Message-ID: <514B2BDE.6030307@googlemail.com> (raw)

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	other threads:[~2013-03-21 15:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-21 15:48 Gerhard [this message]
2013-03-22  8:26 ` [PATCH] Re: orgtbl-to-generic with lfmt (wrong usage or bug) Rémi Vanicat
2013-04-07  7:42   ` Bastien

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=514B2BDE.6030307@googlemail.com \
    --to=gsqual@gmail.com \
    --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).