Lines breaks not working in Atom summaries

RESOLVED INVALID

Status

()

RESOLVED INVALID
13 years ago
13 years ago

People

(Reporter: thbley, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b2) Gecko/20060821 Firefox/2.0b2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b2) Gecko/20060821 Firefox/2.0b2

In the summary of a RSS feed I have:

<updated>2006-08-22T19:51:14+00:00</updated>
<summary>[Id] 1501&lt;br&gt;
[Created] 7:51 pm&lt;br&gt;
[Server] tomnb&lt;br&gt;
</summary>

In the preview for the news feed, the summary is displayed as:
[Id] 1501<br> [Created] 7:51 pm<br> [Server] tomnb<br>

instead of:
[Id] 1501<br>
[Created] 7:51 pm<br>
[Server] tomnb<br>

or instead of:
[Id] 1501
[Created] 7:51 pm
[Server] tomnb


I tried: <br>, \n and \r\n, none of them is working.

Reproducible: Always

Steps to Reproduce:
1. E.g. this feed:

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Events - Display - Simple Groupware</title>
<link href="http://localhost/sgs/src/index.php?folder=7701&amp;view=display"/>
<link rel="self" href="http://localhost/sgs/src/index.php?folder=7701&amp;view=display&amp;export=rss"/>
<updated>2006-08-22T19:51:22+00:00</updated>
<author><name>Simple Groupware VERSIONNUM</name></author>
<id>http://localhost/sgs/src/index.php?folder=7701&amp;view=display</id>

<entry>
<title>Events - Display</title>
<link href="http://localhost/sgs/src/index.php?folder=7701&amp;view=display"/>
<id>http://localhost/sgs/src/index.php?folder=7701&amp;view=display</id>
<updated>2006-08-22T19:51:22+00:00</updated>
<summary></summary>
</entry>
<entry>
<title>tomnb setup info [101]</title>
<link href="http://localhost/sgs/src/index.php?folder=7701&amp;view=display&amp;item[]=101"/>
<id>http://localhost/sgs/src/index.php?folder=7701&amp;view=display&amp;item[]=101</id>
<updated>2006-08-18T15:07:24+00:00</updated>
<summary>[Id] 101&lt;br&gt;
[Created] Aug 18, 3:07 pm&lt;br&gt;
[Server] tomnb&lt;br&gt;
[Username] setup&lt;br&gt;
[Component] info&lt;br&gt;
[Message] Setup: setup-data written to ../simple_store/config.php.&lt;br&gt;

</summary>
</entry>
</feed>
(Reporter)

Comment 1

13 years ago
Created attachment 234946 [details]
Linebreaks in preview of RSS feed not working

Comment 2

13 years ago
The summary tag needs a type="html" attribute. That'll stop Firefox showing the literal <br> tags, but I'm not sure whether the feed preview will allow line breaks.
Component: General → RSS Discovery and Preview
QA Contact: general → rss.preview
Summary: Lines breaks not working in RSS summaries → Lines breaks not working in Atom summaries

Comment 3

13 years ago
(In reply to comment #2)
> The summary tag needs a type="html" attribute. That'll stop Firefox showing the
> literal <br> tags, 

Correct.

> but I'm not sure whether the feed preview will allow line
> breaks.

Beta 2 will allow them, beta 1 does not.

Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → INVALID
(Reporter)

Comment 4

13 years ago
Thanks, using <summary type="html"> makes tags like <br>, <code>, etc. working.
You need to log in before you can comment on or make changes to this bug.