Bug 54462 - ant formatter should respect CDATA sections
Summary: ant formatter should respect CDATA sections
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 57379
Blocks:
  Show dependency tree
 
Reported: 2004-03-11 09:17 EST by John-Mason P. Shackelford CLA
Modified: 2014-08-27 04:49 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John-Mason P. Shackelford CLA 2004-03-11 09:17:41 EST
The ant editor should properly align a CDATA section while ignoring the text inside.
Comment 1 John-Mason P. Shackelford CLA 2004-03-11 09:18:03 EST
I'll do this in M9.
Comment 2 John-Mason P. Shackelford CLA 2004-04-03 23:21:24 EST
It will not be possible to resolve this issue without addressing bug 57379. This
may be a good candidate for post 3.0.
Comment 3 John-Mason P. Shackelford CLA 2004-04-03 23:50:49 EST
The net result of this bug is that instead of leaving text inside CDATA sections
untouched, the ant formatter will attempt to format it using the same rules that
are applied to the rest of the build file, e.g. indenting xml elements, wrapping
long lines, etc.

As far as I know, unlike bug 54458 this bug does not entail any data loss, other
than whitespace, formatting, etc.
Comment 4 John-Mason P. Shackelford CLA 2004-05-15 16:16:46 EDT
With the fix that is in for bug 57379, all that remains is to fix the
XmlDocumentFormatter. The XmlElementFormattingStrategy no longer messes with
stuff inside CDATA sections.
Comment 5 Darin Swanson CLA 2004-05-28 19:39:44 EDT
Deferred to post 3.0
Comment 6 Denis Roy CLA 2009-08-30 02:19:50 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.
Comment 7 Sebastien Arod CLA 2014-08-27 04:49:29 EDT
This bug seems to have been closed by some automatic process but it seems pretty valid to me.

It's very annoying as soon as you start using CDATA like is required when doing multiline replace with Ant replace task.