In my case, svn:eol-style
property was set on a file.
And “some lines of the file were separated by UNIX line endings (LF character), while others were separated by DOS-style line endings (CR+LF characters)”. Here is another detailed discussion of this problem.
"Edit"->"EOL Conversion"->"Windows format"
in Notepad++ solved the issue for me.