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

Bug 333358

Summary: [formatting] formatting inserts Break in text node even if there is no sibling
Product: [WebTools] WTP Source Editing Reporter: Sarika Sinha <sarika.sinha>
Component: wst.htmlAssignee: Sarika Sinha <sarika.sinha>
Status: RESOLVED FIXED QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: thatnitind
Version: 3.2.3Flags: thatnitind: review+
Target Milestone: 3.2.3   
Hardware: PC   
OS: Windows XP   
Whiteboard: WI65083
Attachments:
Description Flags
Patch restricts the addition of break, if text node has no sibling
none
patch none

Description Sarika Sinha CLA 2010-12-31 01:28:21 EST
Build Identifier: M20100909-0800

HTML formatter is inserting a break after the text node even if there is no sibling to the text node. If HedP has a text node with no sibling, no break should be inserted.


Reproducible: Always
Comment 1 Sarika Sinha CLA 2010-12-31 01:30:18 EST
Created attachment 185922 [details]
Patch restricts the addition of break, if text node has no sibling
Comment 2 Nick Sandonato CLA 2011-01-05 13:21:41 EST
Created attachment 186107 [details]
patch

Alternative patch.
Comment 3 Nick Sandonato CLA 2011-01-05 13:22:43 EST
I think the original patch can cause weird formatting like
<p>
  Text</p>

Proposing a patch that will not do that.
Comment 4 Nick Sandonato CLA 2011-01-12 15:07:21 EST
Code checked in.