You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@opennlp.apache.org by William Colen <wi...@gmail.com> on 2014/04/11 00:58:50 UTC
End of line whitespaces in Eclipse
When I save a .java file in Eclipse, it is removing the end of line
whitespaces. I am using the
http://opennlp.apache.org/code-formatter/OpenNLP-Eclipse-Formatter.xml
This is causing lots of changes in files I actually needed to change only
one line. Do anybody know how to I avoid it?
Thank you,
William
Re: End of line whitespaces in Eclipse
Posted by Jörn Kottmann <ko...@gmail.com>.
Hello,
in Eclipse you can configure actions which are run when a file is saved.
One of these actions removes white spaces at the end of a line.
You can disable it:
Window -> Preferences -> Java -> Editor -> Save Actions
HTH,
Jörn
On 04/11/2014 12:58 AM, William Colen wrote:
> When I save a .java file in Eclipse, it is removing the end of line
> whitespaces. I am using the
> http://opennlp.apache.org/code-formatter/OpenNLP-Eclipse-Formatter.xml
>
> This is causing lots of changes in files I actually needed to change only
> one line. Do anybody know how to I avoid it?
>
> Thank you,
> William
>
Re: End of line whitespaces in Eclipse
Posted by Mark G <ma...@apache.org>.
agreed
On Thu, Apr 24, 2014 at 3:50 PM, William Colen <wi...@gmail.com>wrote:
> I think we should do it.
>
> 2014-04-22 8:50 GMT-03:00 Jörn Kottmann <ko...@gmail.com>:
>
> > We should maybe once remove all these white spaces
> > at the end of lines. And maybe repeat that process
> > for every release.
> >
> > Now days there are tools which can diff the files
> > ignoring white space only changes.
> >
> > Any opinions?
> >
> > Jörn
> >
> > On Thu, 2014-04-10 at 19:58 -0300, William Colen wrote:
> > > When I save a .java file in Eclipse, it is removing the end of line
> > > whitespaces. I am using the
> > > http://opennlp.apache.org/code-formatter/OpenNLP-Eclipse-Formatter.xml
> > >
> > > This is causing lots of changes in files I actually needed to change
> only
> > > one line. Do anybody know how to I avoid it?
> > >
> > > Thank you,
> > > William
> >
> >
> >
>
Re: End of line whitespaces in Eclipse
Posted by William Colen <wi...@gmail.com>.
I think we should do it.
2014-04-22 8:50 GMT-03:00 Jörn Kottmann <ko...@gmail.com>:
> We should maybe once remove all these white spaces
> at the end of lines. And maybe repeat that process
> for every release.
>
> Now days there are tools which can diff the files
> ignoring white space only changes.
>
> Any opinions?
>
> Jörn
>
> On Thu, 2014-04-10 at 19:58 -0300, William Colen wrote:
> > When I save a .java file in Eclipse, it is removing the end of line
> > whitespaces. I am using the
> > http://opennlp.apache.org/code-formatter/OpenNLP-Eclipse-Formatter.xml
> >
> > This is causing lots of changes in files I actually needed to change only
> > one line. Do anybody know how to I avoid it?
> >
> > Thank you,
> > William
>
>
>
Re: End of line whitespaces in Eclipse
Posted by Jörn Kottmann <ko...@gmail.com>.
We should maybe once remove all these white spaces
at the end of lines. And maybe repeat that process
for every release.
Now days there are tools which can diff the files
ignoring white space only changes.
Any opinions?
Jörn
On Thu, 2014-04-10 at 19:58 -0300, William Colen wrote:
> When I save a .java file in Eclipse, it is removing the end of line
> whitespaces. I am using the
> http://opennlp.apache.org/code-formatter/OpenNLP-Eclipse-Formatter.xml
>
> This is causing lots of changes in files I actually needed to change only
> one line. Do anybody know how to I avoid it?
>
> Thank you,
> William