emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: change in babel argument processing?
Date: Mon, 08 May 2017 09:51:17 +0100	[thread overview]
Message-ID: <87tw4vspdm.fsf@t3610> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 561 bytes --]

Hello all,

Some of my ledger babel calls have stopped working.  I have tracked it
down to a change in how backslashes are treated.  Formerly, I had
"...\n..." which was interpreted correctly but now require to escape the
backslash "...\\n...", as in the attached example.

I'm posting this as much as a heads up for others as anything else.  I
did not see any mention of this in the list or the change log but could
have obviously missed it easily (apologies if so).

Thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.6-407-gc28ec3

[-- Attachment #1.2: t.org --]
[-- Type: text/x-org, Size: 557 bytes --]

* test
This does not work:
#+call: year2016[:cmdline --format "%-20A %12T\n" bal --flat pay tax]()

#+results:

This one does:
#+call: year2016[:cmdline --format "%-20A %12T\\n" bal --flat pay tax]()

#+results:
: pay                      -35.00 £
: tax                       10.00 £
:                          -25.00 £

#+name: year2016
#+begin_src ledger :cmdline bal assets
  2016/05/03 * pay
      bank                                       25.00 £
      tax                                           10 £
      pay
#+end_src 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

             reply	other threads:[~2017-05-08  8:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-08  8:51 Eric S Fraga [this message]
2017-05-08  9:27 ` change in babel argument processing? Nicolas Goaziou
     [not found] ` <7f3c13e41d4649cfb375caf024b3c2b1@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-05-08 10:45   ` Eric S Fraga

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=87tw4vspdm.fsf@t3610 \
    --to=e.fraga@ucl.ac.uk \
    --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).