summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. Arne Babenhauserheide <arne_bab@web.de>2021-04-30 09:03:10 +0200
committerBastien Guerry <bzg@gnu.org>2021-04-30 09:03:10 +0200
commit8ab1e30dbca544980475801afee29a7a5e31b41d (patch)
treee780759e1b0b57941d027b5c6dcff59a2f9e082d
parente2ffee96d2667b5c70fd9d8fc0a7fbc54a56950b (diff)
downloadorg-mode-8ab1e30dbca544980475801afee29a7a5e31b41d.tar.gz
contrib/lisp/ox-rss.el (org-rss-headline): Handle empty date
* contrib/lisp/ox-rss.el (org-rss-headline): Handle empty date. TINYCHANGE Reported-by: "Dr. Arne Babenhauserheide" <arne_bab@web.de> Link: https://orgmode.org/list/875z49echi.fsf@web.de/
-rw-r--r--contrib/lisp/ox-rss.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/lisp/ox-rss.el b/contrib/lisp/ox-rss.el
index bb069da..8e8e81a 100644
--- a/contrib/lisp/ox-rss.el
+++ b/contrib/lisp/ox-rss.el
@@ -245,7 +245,7 @@ communication channel."
(or (org-element-property :CATEGORY headline) "") info))
(pubdate0 (org-element-property :PUBDATE headline))
(pubdate (let ((system-time-locale "C"))
- (if pubdate0
+ (if (and pubdate0 (not (string-empty-p pubdate0)))
(format-time-string
"%a, %d %b %Y %H:%M:%S %z"
(org-time-string-to-time pubdate0)))))
@@ -270,7 +270,7 @@ communication channel."
(org-element-property :CUSTOM_ID headline)
publink)
info))))
- (if (not pubdate0) "" ;; Skip entries with no PUBDATE prop
+ (if (not pubdate) "" ;; Skip entries with no PUBDATE prop
(format
(concat
"<item>\n"