* [PATCH] Fix ODT output for scheduled items.
@ 2020-11-28 15:29 Nick Dokos
2020-11-28 15:38 ` Nick Dokos
0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2020-11-28 15:29 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 310 bytes --]
The ODT exporter uses the org-deadline-string for scheduled items. This
apparently predates the introduction of the "new" exporter in 2013 -
time flies...
It was reported on Emacs SE:
https://emacs.stackexchange.com/questions/61985/org-export-to-odt-incorrectly-use-deadline-for-scheduled
Patch attached.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Fix ODT output for scheduled items --]
[-- Type: text/x-patch, Size: 935 bytes --]
From 429d3eb816d0673326969f50b478f4d622147432 Mon Sep 17 00:00:00 2001
From: Nick Dokos <ndokos@gmail.com>
Date: Sat, 28 Nov 2020 10:01:02 -0500
Subject: [PATCH] org-odt-planning: Fix scheduled item output
* lis/ox-odt.el (org-odt-planning): Use org-scheduled-string, not
org-deadline-string, for scheduled items.
See <https://emacs.stackexchange.com/questions/61985/org-export-to-odt-incorrectly-use-deadline-for-scheduled> for an ECM.
---
lisp/ox-odt.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el
index 4619f9fcd..ef07acfed 100644
--- a/lisp/ox-odt.el
+++ b/lisp/ox-odt.el
@@ -2946,7 +2946,7 @@ channel."
(when scheduled
(concat
(format "<text:span text:style-name=\"%s\">%s</text:span>"
- "OrgScheduledKeyword" org-deadline-string)
+ "OrgScheduledKeyword" org-scheduled-string)
(org-odt-timestamp scheduled contents info)))))))
--
2.25.4
[-- Attachment #3: Type: text/plain, Size: 12 bytes --]
--
Nick
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix ODT output for scheduled items.
2020-11-28 15:29 [PATCH] Fix ODT output for scheduled items Nick Dokos
@ 2020-11-28 15:38 ` Nick Dokos
2020-11-28 15:59 ` Kyle Meyer
0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2020-11-28 15:38 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 49 bytes --]
Same patch but fixes the typo in the Changelog:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Fix ODT output for scheduled items --]
[-- Type: text/x-patch, Size: 936 bytes --]
From 7dc4877469c5bed7580ff80e9534480e16972b93 Mon Sep 17 00:00:00 2001
From: Nick Dokos <ndokos@gmail.com>
Date: Sat, 28 Nov 2020 10:01:02 -0500
Subject: [PATCH] org-odt-planning: Fix scheduled item output
* lisp/ox-odt.el (org-odt-planning): Use org-scheduled-string, not
org-deadline-string, for scheduled items.
See <https://emacs.stackexchange.com/questions/61985/org-export-to-odt-incorrectly-use-deadline-for-scheduled> for an ECM.
---
lisp/ox-odt.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el
index 4619f9fcd..ef07acfed 100644
--- a/lisp/ox-odt.el
+++ b/lisp/ox-odt.el
@@ -2946,7 +2946,7 @@ channel."
(when scheduled
(concat
(format "<text:span text:style-name=\"%s\">%s</text:span>"
- "OrgScheduledKeyword" org-deadline-string)
+ "OrgScheduledKeyword" org-scheduled-string)
(org-odt-timestamp scheduled contents info)))))))
--
2.25.4
[-- Attachment #3: Type: text/plain, Size: 12 bytes --]
--
Nick
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-28 16:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-28 15:29 [PATCH] Fix ODT output for scheduled items Nick Dokos
2020-11-28 15:38 ` Nick Dokos
2020-11-28 15:59 ` Kyle Meyer
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).