Bug 49900 - [formatting] Code formatter should indent HTML when formatting it.
Summary: [formatting] Code formatter should indent HTML when formatting it.
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement with 3 votes (vote)
Target Milestone: 3.3 RC4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 65289 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-13 06:05 EST by Robert (Kraythe) Simmons CLA
Modified: 2007-06-22 12:47 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***