Ticket #1246 (closed defect: notabug)

Opened 19 months ago

Last modified 10 months ago

<pre> blocks in Atom CDATA have whitespace trimmed

Reported by: coar Owned by:
Priority: major Milestone: 0.8
Component: Habari Core Software Version: SVN
Keywords: atom whitespace Cc:

Description

I've found that leading whitespace in <pre> blocks in my blog is trimmed when it appears in the Atom feed.

Compare

 http://ken.coar.org/burrow/just-relax-ng-in-the-heat

with

 http://ken.coar.org/burrow/atom/just-relax-ng-in-the-heat

Change History

comment:1 Changed 15 months ago by anon

  • Priority changed from major to trivial
  • Milestone changed from Undetermined to 0.8

comment:2 Changed 15 months ago by gsnedders

  • Priority changed from trivial to major

I disagree this is trivial: it causes data-corruption (insofar as the semantics are totally changed, and in way that is quite visible), and hence cannot be a minor issue.

comment:3 Changed 15 months ago by anon

the second url is reachable?

comment:4 Changed 15 months ago by michaeltwofish

I think the second URL should be  http://ken.coar.org/burrow/just-relax-ng-in-the-heat/atom.

The whitespace between <pre> and <drill> appear to be identical, a carriage return and two spaces. In the atom entry the <pre> element is entity encoded, so if whatever you're reading it in doesn't decode it and displays it as HTML, the whitespace will collapse.

Last edited 15 months ago by michaeltwofish (previous) (diff)

comment:5 Changed 10 months ago by michaeltwofish

  • Status changed from new to closed
  • Resolution set to notabug

As per my previous comment, Habari appears to be behaving correctly here.

Note: See TracTickets for help on using tickets.