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 240129 - option to avoid trimming white spaces for manifest files
Summary: option to avoid trimming white spaces for manifest files
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 226742 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-08 17:47 UTC by gregkotsaftis
Modified: 2016-07-07 13:47 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 gregkotsaftis 2014-01-08 17:47:24 UTC
We need a new "Language" option on "Options>Editor>OnSave", to control "*.mf" files.

Plain text does not work, so as a workaround, we have to set "All Languages" to "none" (for trailing whitespaces) and all other languages to e.g. all lines
This is not so productive.
Please give a manifest language option as well in a new NB version.

In my opinion "Remove Trailing Spaces" should be a configurable property for specified file types. For example it is desired to trim spaces on source files *.java but it is not on manifest files, because of the blank spaces that are required for "Class-Path:" e.g consider the following manifest.mf, every line in Class-Path section must end with a training space. Since Netbeans trims these spaces I have to edit my manifest files with notepad!

Manifest-Version: 1.0
Main-Class: test.MainDesktop
Class-Path: 
 lib\. 
 lib\hibernate\antlr-2.7.6.jar 
 lib\hibernate\c3p0-0.9.1.jar 
 lib\hibernate\cglib-2.2.jar 
 lib\hibernate\commons-collections-3.1.jar 
 lib\hibernate\commons-logging-1.1.1.jar 
 lib\hibernate\dom4j-1.6.1.jar 
 lib\hibernate\ehcache-1.2.3.jar 
 lib\hibernate\hibernate3.jar 
 lib\hibernate\javassist-3.9.0.GA.jar 
 lib\hibernate\jta-1.1.jar 
 lib\hibernate\log4j-1.2.15.jar 
 lib\hibernate\slf4j-api-1.5.8.jar 
 lib\hibernate\slf4j-log4j12-1.5.8.jar 
 lib\jasperreports\commons-beanutils-1.7.jar 
 lib\jasperreports\commons-digester-1.7.jar 
 lib\jasperreports\commons-javaflow-20060411.jar 
 lib\jasperreports\itext-1.3.1.jar 
 lib\jasperreports\jasperreports-3.0.0-modified.jar 
 lib\jasperreports\jdt-compiler-3.1.1.jar 
 lib\jasperreports\poi-3.0.1-final-20070705.jar
Comment 1 gregkotsaftis 2014-01-08 17:49:30 UTC
*** Bug 226742 has been marked as a duplicate of this bug. ***
Comment 2 Martin Balin 2016-07-07 07:31:02 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
Comment 3 gregkotsaftis 2016-07-07 13:47:57 UTC
it seems in nb 8.1 this issue is no more. Setting onSave to trim spaces for properties, text files, etc. does not affect *.mf files anymore.