From: Robert Klein <roklein@roklein.de>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: export of formatted date macro fails
Date: Wed, 27 Sep 2017 14:50:41 +0200 [thread overview]
Message-ID: <20170927145041.23ee2007@lt70.mpip-mainz.mpg.de> (raw)
Hi,
when I export a formatted date via the {{{date}}} macro _and_ use e.g.
commas and/or spaces, I only get the first component in the exported
file (tested for HTML and PDF export).
E.g. in my document I have a date:
#+DATE: [2008-11-09 Sun 11:00]
and later the macro
{{{date(%A, %B %e, %Y)}}
The exported document only has the "Sunday" (%A) part of the date.
Same for {{{date(%A,%B%e,%Y)}}.
So far I see (org-timestamp-format timestamp "%A, %B %e, %Y") works for
a timestamp created by (org-element-timestamp-parser).
I don't understand the macro code at all (e.g.. org-macro-replace-all).
Versions are:
Org mode version 9.1.1 (release_9.1.1-7-g226d2f
@ /home/roklein/.emacs.d/org-mode/lisp/)
GNU Emacs 25.3.1 (x86_64-unknown-openbsd, GTK+ Version 2.24.31) of
2017-09-26
Any help is greatly appreciated.
Thank you very much.
Best regards
Robert
next reply other threads:[~2017-09-27 12:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-27 12:50 Robert Klein [this message]
2017-09-27 13:21 ` export of formatted date macro fails Kaushal Modi
2017-09-27 13:42 ` Robert Klein
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170927145041.23ee2007@lt70.mpip-mainz.mpg.de \
--to=roklein@roklein.de \
--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 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.