convert newlines for trunk