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 132679 - No way to define eol characters
Summary: No way to define eol characters
Status: RESOLVED DUPLICATE of bug 72515
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@editor
Depends on:
Blocks: 143309
  Show dependency tree
Reported: 2008-04-12 04:52 UTC by 48v
Modified: 2008-09-23 11:45 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description 48v 2008-04-12 04:52:39 UTC
Not quite sure if this is techncally a defect, sorry if it should be enhancement.
I'm working on a project involving developers on linux and windows. If is
correct, I understand that there is no way for me to make new files with "\n" newlines from a windows computer. This is
causing errors in the revision controller we use. For now I am copying files created in linux and renaming and blanking
them - an unfortunate workaround. It seems like the inability to change the default end of line delimiter is likely to
be causing trouble for a number of other people. Could this default become an option somewhere? Is there a place to edit
it that jsut isn't documented?
Comment 1 48v 2008-04-12 04:58:38 UTC
My friend helps me correct myself: rather than \n, what I'm hoping to specify is LF end-lines instead of CRLF ones.
Comment 2 Vitezslav Stejskal 2008-04-14 10:19:22 UTC
Hi, you are probably right. We could provide better support for this in Netbeans. On the other hand, would not it be
better if your version control system automatically converted line ends when adding/commiting files? I remember that the
CVS clients for windows do the conversion somehow. Netbeans project used to use CVS and there surely were people working
on Windows and commiting changes to the repository. These days we use Mercurial, which AFAIK has some extension for
Windows that does the conversion.

What version control system are you using? Could you instruct its Windows client software to do the conversion?
Comment 3 48v 2008-04-15 08:37:01 UTC
I am using git, and while it is possible to instruct it to do the conversion, I have other situations in which I might
like a unix line ending as well, and surely it would not be too hard to save in whichever format the user chooses
(defaulting to the system standard). Netbeans should be able to do something that basic.
Comment 4 Vitezslav Stejskal 2008-09-23 11:45:46 UTC

*** This issue has been marked as a duplicate of 72515 ***