Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340087 - [formatting] Formatter chooses different whitespace in TD tags each time it's run
Summary: [formatting] Formatter chooses different whitespace in TD tags each time it's...
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal with 1 vote (vote)
Target Milestone: 3.3.1   Edit
Assignee: Nick Sandonato CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-15 16:15 EDT by Ethan Wallwork CLA
Modified: 2011-06-28 18:54 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ethan Wallwork CLA 2011-03-15 16:15:45 EDT
Build Identifier: 20110301-1815

When formatting an HTML or JSP page with a <TD> or <TH> tag, and where that tags last child is an element, the formatter will alternate between placing the closing </TD> immediately after the last child and placing it on a new line.

This was tested using the default settings under Web->HTML FIles->Editor.

Reproducible: Always

Steps to Reproduce:
1. Create a new HTML file with the content: <td><div>bug!</div></td>
2. Run the source code formatter
3. Run the source code formatter again, and notice the different result.
4. Run the source code formatter yet again, and notice the different result.
Comment 1 Nick Sandonato CLA 2011-06-28 18:54:33 EDT
Checked in code changes.