Bug 49900

Summary: [formatting] Code formatter should indent HTML when formatting it.
Product: [Eclipse Project] JDT Reporter: Robert (Kraythe) Simmons <robert.simmons>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: analogue, dirk_baeumer, tonny.madsen
Version: 3.0   
Target Milestone: 3.3 RC4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Robert (Kraythe) Simmons CLA 2004-01-13 06:05:11 EST
When formatting HTML in comments the code formatter should indent it to 
correspond with the levels of nesting.
Comment 1 Olivier Thomann CLA 2004-01-13 10:05:55 EST
Move to JDT/Text for comment.
Comment 2 Dani Megert CLA 2004-01-13 12:22:25 EST
Can you be a bit more precise about this. Nesting in relation to what?
Comment 3 Tonny Madsen CLA 2004-06-17 10:10:32 EDT
E.g. when formatting html lists, I would like to see

/**
 * ...
 *
 * <ul>
 *
 * <li> This is a list item that span
 *      multiple lines.
 *
 * <li> And another item that include a sub list:
 *
 *      <ul>
 *
 *      <li> item 1.
 *
 *      <li> item 2.
 *
 *      <li> item 3. And it spans two lines.
 *           It does!
 *
 *      </ul>
 *
 * </ul>
 *
 * ...
 */

I know that the placement of the <li> currently requires a separate line, but 
that is another issue :-)
Comment 4 Dani Megert CLA 2005-10-10 12:08:33 EDT
Ownership changed.
Comment 5 Missing name CLA 2005-11-24 05:11:58 EST
In wtp1.0M8, formatting html document destroys indentation. It strips all the space and existing indentation and compresses everything in the editor to an unreadable format. 

Will this enhancement fix general indentation issue or should I raise a new bug ?
Comment 6 Olivier Thomann CLA 2007-06-21 10:58:15 EDT
Closing as WONTFIX.
No action plan.
Comment 7 Olivier Thomann CLA 2007-06-21 11:08:42 EDT
*** Bug 65289 has been marked as a duplicate of this bug. ***