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 139999 - Tab spacing disappers after saving (ctrl+s)
Summary: Tab spacing disappers after saving (ctrl+s)
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: Other Windows XP
: P3 blocker with 1 vote (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-15 08:37 UTC by glarian
Modified: 2013-08-21 14:30 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description glarian 2008-07-15 08:37:30 UTC
When I generate a blank line by typing 'Enter'. The indentation works rightly.
One blank line with indentation is generated. However, the indentation disappears after I save using (ctrl + s).
This if only for blank line with indentation.
Comment 1 Petr Dvorak 2008-07-16 17:00:12 UTC
Hi Glarian!

This is a duplicate of http://www.netbeans.org/issues/show_bug.cgi?id=137529 (can you verify this, please?).

This issue should be already fixed in dev builds.

With regards,

Petr Dvorak

*** This issue has been marked as a duplicate of 137529 ***
Comment 2 Petr Dvorak 2008-07-18 08:50:43 UTC
Verified (after I received e-mail from reporter).
Comment 3 MikeFHay 2013-06-17 15:56:27 UTC
This bug has the same cause as bug 137529, but is more general and has not been fixed. Whitespace-only lines are still trimmed as of NetBeans IDE 7.3 (Build 201302132200) when "Remove Trailing Whitespace" is selected. The correct behaviour in my opinion is for these lines to be preserved, and trailing whitespace to be trimmed only from lines which contain non-whitespace characters.
Comment 4 Jiri Prox 2013-06-19 14:05:57 UTC
IMHO this is not P2
Comment 5 Dusan Balek 2013-08-21 14:30:02 UTC
The current behavior is as designed. When "Remove Trailing Whitespace" is selected, a trailing whitespace is removed from all lines except the line with cursor. No distinction between the lines containing non-whitespace characters and the other lines. Sorry.