Ticket #1246 (closed defect: notabug)
<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
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: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.
