Fixes the open line tests when the indentation is set as tabs in the main window
Different apporach to solve the issue
Merge pull request #4805 from TomMalbran/tom/open-line-fix

Fixes the Open Line tests when the indentation is set as tabs in the main window