Make Compare tools ignore line endings

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
LionTech
Junior Member
Junior Member
Posts: 41
Joined: 2003-06-12, 19:07 UTC
Location: Belgium

Make Compare tools ignore line endings

Post 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.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Make Compare tools ignore line endings

Post 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.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Make Compare tools ignore line endings

Post 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.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
georgeb
Senior Member
Senior Member
Posts: 250
Joined: 2021-04-30, 13:25 UTC

Re: Make Compare tools ignore line endings

Post 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.
Post Reply