Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 132679 - No way to define eol characters
No way to define eol characters
Status: RESOLVED DUPLICATE of bug 72515
Product: editor
Classification: Unclassified
Component: Formatting & Indentation
6.x
PC All
: P3 (vote)
: 6.x
Assigned To: issues@editor
issues@editor
:
Depends on:
Blocks: 143309
  Show dependency treegraph
 
Reported: 2008-04-12 04:52 UTC by 48v
Modified: 2008-09-23 11:45 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

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 http://wiki.netbeans.org/FaqEditorEOLs 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?
Thanks
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 ***


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo