diff options
author | Bastien Guerry <bzg@altern.org> | 2014-03-24 06:27:31 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2014-03-24 06:27:31 +0100 |
commit | 2836c9cd81cfaae9b47b45be890ea4d9e72882c5 (patch) | |
tree | 906edecd8092e6a97f2a5f6a5b8b1b301f88a2cb | |
parent | d91d4bfb47d82cde6ce9bf38ad7c34b31c1b2930 (diff) | |
download | org-mode-2836c9cd81cfaae9b47b45be890ea4d9e72882c5.tar.gz |
org-rss-headline: Replace bracket links by their descriptions
* contrib/lisp/ox-rss.el (org-rss-headline): Replace bracket
links by their descriptions.
Thanks to steckerhalter for reporting this.
-rw-r--r-- | contrib/lisp/ox-rss.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/lisp/ox-rss.el b/contrib/lisp/ox-rss.el index 4bdd1be..5fd2afc 100644 --- a/contrib/lisp/ox-rss.el +++ b/contrib/lisp/ox-rss.el @@ -240,7 +240,11 @@ communication channel." (org-time-string-to-time (or (org-element-property :PUBDATE headline) (error "Missing PUBDATE property")))))) - (title (org-element-property :raw-value headline)) + (title (replace-regexp-in-string + org-bracket-link-regexp + (lambda (m) (or (match-string 3 m) + (match-string 1 m))) + (org-element-property :raw-value headline))) (publink (or (and hl-perm (concat (or hl-home hl-pdir) hl-perm)) (concat @@ -319,8 +323,8 @@ as a communication channel." (ifile (plist-get info :input-file)) (publink (concat (file-name-as-directory blogurl) - (file-name-nondirectory - (file-name-sans-extension ifile)) + (file-name-nondirectory + (file-name-sans-extension ifile)) "." rssext))) (format "\n<title>%s</title> |