Skip to content

Commit 95eb24e

Browse files
author
Daniel Aslau
committed
break long words and on hyphen for maxcolwidths
1 parent 6ea172b commit 95eb24e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,14 @@ and thus no automate multiline wrapping will take place.
927927
The wrapping uses the python standard [textwrap.wrap](https://docs.python.org/3/library/textwrap.html#textwrap.wrap)
928928
function with default parameters - aside from width.
929929

930+
BREAK_LONG_WORDS and BREAK_LONG_WORDS can be used to turn off the TextWrapper break_long_words and break_on_hyphens options.
931+
932+
```python
933+
import tabulate
934+
tabulate.BREAK_LONG_WORDS = False
935+
tabulate.BREAK_ON_HYPHENS = False
936+
```
937+
930938
This example demonstrates usage of automatic multiline wrapping, though typically
931939
the lines being wrapped would probably be significantly longer than this.
932940

0 commit comments

Comments
 (0)