Possible NetBeans space insertion bug with tab indentation (?)

NetBeans 6 logo
Hum… it seems there may be a rather annoying tab indentation bug with NetBeans 6…
 
The problem occurs when you are editing a JSP / HTML file with tab indentation (instead of spaces), and you create a new element on the next line, an extra space is added to the beginning of that new line, making the file look something like below:
 
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h2>Hello World!</h2>
		<div>div1</div>
		 <div>div2</div>
		  <div>div3</div>
		   <div>div4</div>
		<% // Some scriptlet (tab level manually reset on this line) %>
		 <div>another div</div>
		  <%-- Some comment --%>
    </body>
</html>
 
For more information (and the bug report), please go to:
 
Advertisements

2 Responses to “Possible NetBeans space insertion bug with tab indentation (?)”

  1. mt3ch Says:

    This has been driving me crazy the last few days in my PHP project (which uses the HTML indentation engine). I voted on the issue and, hopefully, it will be fixed soon.

  2. Kok-Yan Says:

    Glad (well…) I’m not the only one having the problem!  At least the Java indentation engine is not broken – or that’ll ^really^ drive me mad.Just in case anyone’s interested, I’m using EditPlus / Notepad++ for text, JS, HTML / CSS.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: