[issue2567] Linefeed in description breaks rss and atom feed once

Ton bugs at mercurial.selenic.com
Fri Dec 24 10:56:31 UTC 2010


New submission from Ton <tcplomp at gmail.com>:

Somehow I managed to have a description of a changeset that incorporate a 
linefeed, this is no problem for Mercurial itself.
However when using the atom *or* rss feeds for that repository with 
HGwebdir and Apache the linefeed is misplaced once.
Here's the report from Opera on the Atom feed:
------------
133:   <content type="xhtml">
134:    <div xmlns="http://www.w3.org/1999/xhtml">
135:     <pre xml:space="preserve">Issue 66
136: </pre>
137:    </div>
138:   </content>
139:  </entry>
------------
(notice the linefeed after 'Issue 66' before the </pre> on line 135)

Somehow a refresh of the feed returns a valid stream.

Here's the rss-feed:
--------------------
 60:     <title>Issue 66</title>
 61:     <guid isPermaLink="true">http://code.tcplomp.nl/mercurial/
rev/40f7a013741d</guid>
 62:     <description><![CDATA[Issue 66<br/>
 63: ]]></description>
 64:     
<author>&#116;&#111;&#110;&#32;&#60;&#116;&#99;&#112;&#108;&#111;&#109;&#112;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</
author>
 65:     <pubDate>Tue, 07 Dec 2010 19:53:46 +0100</pubDate>
 66: </item>
----------------
(notice the linefeed after the <br/> on line 62)

Ton

----------
messages: 14758
nosy: tcplomp
priority: bug
status: unread
title: Linefeed in description breaks rss and atom feed once
topic: 1.7, hgweb

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2567>
____________________________________________________


More information about the Mercurial-devel mailing list