forked from mirrors/org-mode
ox-rss: Prevent dropping lower level headlines
* contrib/lisp/ox-rss.el (org-rss-headline): Transcode lower level headlines (headlines with level > 1) using the html backend. Do not drop them. Previously, lower level headlines were dropped and did not appear in the exported RSS output.
This commit is contained in:
parent
34dc298869
commit
9b5e8fdb5c
|
@ -226,9 +226,9 @@ Return output file name."
|
|||
"Transcode HEADLINE element into RSS format.
|
||||
CONTENTS is the headline contents. INFO is a plist used as a
|
||||
communication channel."
|
||||
(unless (or (org-element-property :footnote-section-p headline)
|
||||
;; Only consider first-level headlines
|
||||
(> (org-export-get-relative-level headline info) 1))
|
||||
(if (> (org-export-get-relative-level headline info) 1)
|
||||
(org-export-data-with-backend headline 'html info)
|
||||
(unless (org-element-property :footnote-section-p headline)
|
||||
(let* ((author (and (plist-get info :with-author)
|
||||
(let ((auth (plist-get info :author)))
|
||||
(and auth (org-export-data auth info)))))
|
||||
|
@ -278,7 +278,7 @@ communication channel."
|
|||
(org-rss-build-categories headline info) "\n"
|
||||
"<description><![CDATA[%s]]></description>\n"
|
||||
"</item>\n")
|
||||
title publink author guid pubdate contents)))))
|
||||
title publink author guid pubdate contents))))))
|
||||
|
||||
(defun org-rss-build-categories (headline info)
|
||||
"Build categories for the RSS item."
|
||||
|
|
Loading…
Reference in New Issue