add missing newlines