emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* export of formatted date macro fails
@ 2017-09-27 12:50 Robert Klein
  2017-09-27 13:21 ` Kaushal Modi
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Klein @ 2017-09-27 12:50 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-27 13:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-27 12:50 export of formatted date macro fails Robert Klein
2017-09-27 13:21 ` Kaushal Modi
2017-09-27 13:42   ` Robert Klein

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).