Issue #29: Ensuring that newline is properly preserved when writing the workbook