How to ignore line breaks?

I ignore minor differences, but I want the below not to display as a difference.

3. TITLE blah blah blah blah blah blah blah blah blah blah 3. TITLE blah blah blah blah blah blah blah blah blah blah 
+6
source share
3 answers

Perhaps this is not possible. I just screwed up the grammar rules for about 30 minutes, and even if you ignore line breaks, it will not consider the text without ignoring on separate lines as continuous line breaks.

Effectively, what you are asking to do this is to cut out all lines from documents and compare two documents, as if each of them was only one (long) line of text. You can do this manually to detect changes, but you cannot merge the changes this way.

+6
source

I also hoped that out of comparison there would be something like this inline. It doesn't seem like that.

The best solution I have found for this is to use some kind of code formatter on both sides. This allows you to compare real changes in the code. For javascript, I am using JSBeautify.

For Java, you can probably use your editor built into the beautifier, or something like this: http://prettyprinter.de/

0
source

I found Compare ++ can compare code, ignoring line differences, spaces and comments. http://cmpp.coodesoft.com/main/downloads

0
source

Source: https://habr.com/ru/post/912864/


All Articles