Author Topic: How to make newlines work ?  (Read 3659 times)

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
How to make newlines work ?
« on: April 26, 2007, 10:40:54 am »
My editor can cope with files being all Unix (\n) or all Windows (\r\n), but it doesn't cope with the files that Subversion has with mixed line endings. It usually ends up "fixing" those, to one or the other. Usually by inserting a blank line for each \r, making it really spaced out.

Is it possible to have Subversion convert everything to Unix when I check it out, or how should I cope with this ? svn diff --extensions --ignore-eol-style works for diffs, but I'm not sure what to do otherwise. Besides avoid the ctrl-M's in the first place, any ideas ?

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: How to make newlines work ?
« Reply #1 on: April 26, 2007, 07:20:54 pm »
Try
svn propset svn:eol-style native <file>

BYO