Org-mode mailing list
 help / color / mirror / Atom feed
* [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	[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	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix ODT output for scheduled items.
  2020-11-28 15:38 ` Nick Dokos
@ 2020-11-28 15:59   ` Kyle Meyer
  0 siblings, 0 replies; 3+ messages in thread
From: Kyle Meyer @ 2020-11-28 15:59 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode

Nick Dokos writes:

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

Thank you.  Applied (546b2ba26).


^ permalink raw reply	[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

Org-mode mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://orgmode.org/list/0 list/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 list list/ https://orgmode.org/list \
		emacs-orgmode@gnu.org
	public-inbox-index list

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git