fix bug of new line formatting on the source mode.