Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340087

Summary: [formatting] Formatter chooses different whitespace in TD tags each time it's run
Product: [WebTools] WTP Source Editing Reporter: Ethan Wallwork <ethan>
Component: wst.htmlAssignee: Nick Sandonato <nsand.dev>
Status: RESOLVED FIXED QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: thatnitind
Version: unspecified   
Target Milestone: 3.3.1   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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.