Replaced new line statements in convert flags function