This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 118621 - Indent HTML/JSP comments relatively
Summary: Indent HTML/JSP comments relatively
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks: 118615
  Show dependency tree
 
Reported: 2007-10-11 21:52 UTC by Tomasz Slota
Modified: 2016-07-07 08:56 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Slota 2007-10-11 21:52:29 UTC
Currently formatting reindents comments to the same level. We should decide on one the following strategies: 

- not to touch the comments content at all (5.5 behavior)
- format them relatively (move the whole block, preserve indentation within block)
Comment 1 Jindrich Sedek 2007-10-12 09:32:59 UTC
I would propose your second variant. To indent whole block of code and to prevent it's content. The same behavior 
should be also for preformated text (<pre>), scripts and maybe also for styles.
Comment 2 Tomasz Slota 2007-11-03 23:42:41 UTC
in the current build formatting comments it is back to the 5.5 behavior. Changing issue type to enhancement
Comment 3 David Konecny 2009-02-09 18:53:19 UTC
I agree with #2. But only for comments: <pre> must be preserved as is; <style> and <script> content is formatted by CSS
and Javascript formatters.
Comment 4 Martin Balin 2016-07-07 08:56:43 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss