core: fixed newline issues that were pointed out