2
Usher
Upon a coincidence, reading this board just a couple of days ago I came across a tool, that seemed interesting, though not yet displayed a practical application for my everyday use cases, but still was worth taking note of.
Then I saw this request here and suggested that the said tool could fit the OP's needs.
Then I tried a tool myself for the very first time in my life, and the results obtained proved I wasn't that wrong.
Then I just gave an example in here of what output the said tool can provide to a user respecting the OP's request.
In no way I'm an expert in the said tool.
Nevertheless, any user feels free to adjust the plugin and try advanced output options according to their specific needs.
Returning to your question, regarding a mixed case.
The direct answer is as follows:
Within the example that I gave here in the morning, in case of a mixed case (where a file contains mixed line break entries of different kinds, CR, LF, or both), the example configuration will provide a fully expected mixed output.
I've seen how it works in this case while testing different files (including my screenshot images here), just didn't mention it here since it went out of the scope of the OP's request specifics (to detect if there are files with the wrong line break style within their dedicated collection of scripts where this element expected to be consistent).
Here is how it looks visualized (again, within nothing else but my example test configuration):
Image:
https://i.imgur.com/NBFc6NS.png
:)
Edit:
For those fellow Total Commander users who might become interested in what content my .txt test files have, here they are:
Image:
https://i.imgur.com/hPWicJa.jpg