Skip to content

Commit 0d5d30e

Browse files
committed
update README according to the new preserve_whitespace usage
1 parent 54ac107 commit 0d5d30e

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -739,13 +739,8 @@ column, in which case every column may have different number formatting:
739739
### Text formatting
740740

741741
By default, `tabulate` removes leading and trailing whitespace from text
742-
columns. To disable whitespace removal, set the global module-level flag
743-
`PRESERVE_WHITESPACE`:
744-
745-
```python
746-
import tabulate
747-
tabulate.PRESERVE_WHITESPACE = True
748-
```
742+
columns. To disable whitespace removal, pass `preserve_whitespace=True`.
743+
Older versions of the library used a global module-level flag PRESERVE_WHITESPACE.
749744

750745
### Wide (fullwidth CJK) symbols
751746

0 commit comments

Comments
 (0)