eclipse-rbe icon indicating copy to clipboard operation
eclipse-rbe copied to clipboard

All endlines of comments are converted from \n to \r\n during each save on windows

Open vdusa opened this issue 8 years ago • 3 comments

I am working on windows. Since there are more developers in our team using linux, I use "Force new line escape style"=Unix (\n). The endlines of translations are correct, but all endlines of all comments (beginning #) are converted to \r\n after each save of the file. I need to ResourceBundle leave there \n.

Could you help me please with this problem? Thank you very much

vdusa avatar Jan 12 '17 11:01 vdusa

I have the same issue, option "Force new line escape style" does not work. It always puts the system native new line regardless of chosen option. So it does \r\n on Windows and \r on Unix and you cannot change it.

gorousek avatar Jun 12 '17 08:06 gorousek

I have the same problem since I started to work with MacOS while my colleagues continue to use Windows. ResourceBundle Editor seems to ignore the property. We use Git and the .properties files always appear 100% changed due to this. What I do is to manually convert the line breaks back to CRLF before commits. Eclipse --> File --> Convert Line Delimiters To --> Windows. But it is annoying.

jewesta avatar Nov 10 '17 16:11 jewesta

There is a workaround. In Eclipse try setting in Preferences>General>Workspace Select UTF-8 as “Textfile encoding” Select UNIX as “New text file line delimiter”

Now i still have the problem but only when adding a key to the .properties file if no key is touched the file won't be totally overwritten. Hope it help and would appreciate a patch.

jamda avatar Dec 06 '18 18:12 jamda