I am using the Difflib module from python to compare two different files but i want it to ignore Whitespaces and Tabs. The API-Doc doesn't work for me and i tried a lot so that it will run but nothing worked.
I am using the HTMLDiff:
difference = difflib.HtmlDiff(difflib.IS_CHARACTER_JUNK(ch=' ')).make_file(compare_line_left, compare_line_right, file1dir, file2dir)
The ch=" " should work but it doesn't seem to work. I tried it with the builtin SequenceMatcher too but honestly i have no clue how to use it. The doc is a bit unclear for me.
Can someone help?
Thank you in advance!