Added newline support for printer