emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Petton <nicolas@petton.fr>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: Nicolas Petton <nicolas@petton.fr>,
	Org-mode Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] org-rss-headline
Date: Tue, 13 Jan 2015 20:42:57 +0100	[thread overview]
Message-ID: <87k30qsbzy.fsf@petton.fr> (raw)
In-Reply-To: <87mw5miiwy.fsf@nicolasgoaziou.fr>


Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Nicolas Petton <nicolas@petton.fr> writes:
>
>> I'm a happy user of ox-rss.el, but was annoyed the other day when I
>> wanted to export an article with a headline containing markup.
>
> What problem did you encounter?

If the headline contains *bold* text for example, the RSS item title
will have the extras * characters, since it's using the :raw-value.

>
>> The problem is that org-rss-headlines uses the raw-value of the headline
>> to export the title, which could contain any markup.
>
> Actually, an export back-end isn't expected to use :raw-value. 
>
> One way to handle this is to create an anonymous export back-end that
> strips unwanted objects, or export them differently (e.g., a link is
> exported as its description, if any, or its path). See, for example
> `org-html--format-toc-headline'.
>
>> Here's a patch that uses the :EXPORT_TITLE property if present,
>> :raw-value if not.
>
> :EXPORT_TITLE is meant to replace #+TITLE: during a subtree export.
> There is ALT_TITLE property, but this is usually used in table of
> contents.

Ok. What about an :RSS_TITLE property? Or should I have a look at
`org-html--format-toc-headline' and submit a different patch?

Nico

-- 
Nicolas Petton
http://nicolas-petton.fr

  reply	other threads:[~2015-01-13 19:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-13 18:09 [PATCH] org-rss-headline Nicolas Petton
2015-01-13 19:23 ` Nicolas Goaziou
2015-01-13 19:42   ` Nicolas Petton [this message]
2015-01-13 22:14     ` Nicolas Goaziou
2015-01-13 22:21       ` Nicolas Petton
2015-01-14 22:51   ` Nicolas Petton
2015-01-16  8:42     ` Nicolas Goaziou
2015-01-18 23:04       ` Nicolas Petton
2015-01-20 14:17         ` Nicolas Petton
2015-01-20 23:36           ` Nicolas Goaziou
2015-01-20 23:46             ` Nicolas Petton
2015-01-21 21:06               ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k30qsbzy.fsf@petton.fr \
    --to=nicolas@petton.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).