diff options
author | Hans Bolinder <[email protected]> | 2018-04-24 12:02:54 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2018-04-25 12:29:13 +0200 |
commit | bc38638a3633e028944d142150511fbcdd86cc92 (patch) | |
tree | f1a56859ac261fb69311252fa955261f720021ad /lib/stdlib/src/shell.erl | |
parent | 960467ead200635cb935dfd3aa5a5abe38299ca6 (diff) | |
download | otp-bc38638a3633e028944d142150511fbcdd86cc92.tar.gz otp-bc38638a3633e028944d142150511fbcdd86cc92.tar.bz2 otp-bc38638a3633e028944d142150511fbcdd86cc92.zip |
stdlib: Introduce characters limit of formatted strings
The name of the io_lib_pretty:print/2 option 'max_chars' is changed to
'line_max_chars' (used by module shell only).
The new option for limiting the number of returned characters of
io_lib_pretty:print() is called 'chars_limit'.
Diffstat (limited to 'lib/stdlib/src/shell.erl')
-rw-r--r-- | lib/stdlib/src/shell.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/shell.erl b/lib/stdlib/src/shell.erl index e4153e7899..1be37672e7 100644 --- a/lib/stdlib/src/shell.erl +++ b/lib/stdlib/src/shell.erl @@ -1416,7 +1416,7 @@ pp(V, I, D, RT) -> true end, io_lib_pretty:print(V, ([{column, I}, {line_length, columns()}, - {depth, D}, {max_chars, ?CHAR_MAX}, + {depth, D}, {line_max_chars, ?CHAR_MAX}, {strings, Strings}, {record_print_fun, record_print_fun(RT)}] ++ enc())). |