Option rtrim
The rtrim
option ignore whitespace characters from the right side of a CSV field. Defaults to false
. It does not remove whitespace present inside the quotes of a field.
- Type:
boolean
- Optional
- Default:
false
- Since: early days
- Related:
trim
,rtrim
— see Available Options
Refer to the trim
documentation to learn about which characters are interpreted as whitespaces.
Example
This example declare spaces around fields at multiple locations. The ones on the right side are trimmed while the other ones are preserved.