Fix LoggerWindow saving triple \n. Closes #3714.
Merge remote-tracking branch 'ivan-github/bug/3714_fix-logger-saving-several-line-returns' into develop