Page 1 of 1

Make Compare tools ignore line endings

Posted: 2022-12-04, 17:25 UTC
by LionTech
Could you add a toggle to make the 'Compare contents' and 'Synchronize directories' function ignore line endings of text files to detect duplicates, please?

Windows vs. Unix (CR/LF vs. LF) with the same line content should be ignored.

Re: Make Compare tools ignore line endings

Posted: 2022-12-04, 18:28 UTC
by Horst.Epp
I think the topic is wrong, or I missunderstand you.
How should TC know where a line ends if you want to ignore any line end.
I guess you mean different line endings should be ignored.

Re: Make Compare tools ignore line endings

Posted: 2022-12-04, 18:46 UTC
by petermad
Well, "Compare contents" in a way does ignore different line breaks, but it opens the "Compare contents" dialog and show 0 differencies, just as when comparing and ANSI and a Unicode file, with otherwis identical content. I can live with that.

In "Synchronize directories" you can enable the plugin compare functions (the little button to the right of "by content") and then use [=tc.Compare as text] - then ANSI files with different line breaks compare equal.

Re: Make Compare tools ignore line endings

Posted: 2022-12-31, 00:41 UTC
by georgeb
petermad wrote: 2022-12-04, 18:46 UTCIn "Synchronize directories" you can enable the plugin compare functions (the little button to the right of "by content") and then use [=tc.Compare as text] - then ANSI files with different line breaks compare equal.
Thanks for pointing this out.