Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable show differences in line separators in a diff with Intellij IDEA 13

I'm using IDEA 13.0.1. A unit test is failing because of some line separator stuff. But when I try to compare the two results, IDEA says "Contents have differences only in line separators".

And I can't find a setting where I can say show me these differences. Is there one?

like image 715
GarfieldKlon Avatar asked Mar 21 '23 00:03

GarfieldKlon


1 Answers

I ran into the same issue, I couldn't find a way to show the difference by clicking show differences, but if you put a break point and look at the strings, they have the line separator written out. For me one string had \n and one had \r\n. \r is also a possible line separator.

like image 86
user1633977 Avatar answered Apr 06 '23 01:04

user1633977