File 0515-Document-that-LineLength-0-means-infinite-in-one-mor.patch of Package erlang
From 49d48bf900a4a85be32259a6a5206816ffda3686 Mon Sep 17 00:00:00 2001 From: Stavros Aronis <stavros.aronis@protonmail.com> Date: Wed, 12 Nov 2025 10:10:58 +0100 Subject: [PATCH] Document that LineLength 0 means infinite in one more place This is mentioned in https://www.erlang.org/doc/apps/stdlib/io.html but mentioning it here is also useful. --- lib/stdlib/src/io_lib.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/stdlib/src/io_lib.erl b/lib/stdlib/src/io_lib.erl index e43541da93..f88d2c019f 100644 --- a/lib/stdlib/src/io_lib.erl +++ b/lib/stdlib/src/io_lib.erl @@ -478,7 +478,8 @@ longer than one line into many lines and indents each line sensibly. Also tries to detect and output lists of printable characters as strings. - `Column` is the starting column; defaults to 1. -- `LineLength` is the maximum line length; defaults to 80. +- `LineLength` is the maximum line length; defaults to 80. The value 0 can be used + to specify infinite length, meaning that no line breaks are inserted. - `Depth` is the maximum print depth; defaults to -1, which means no limitation. """. -spec print(Term, Column, LineLength, Depth) -> chars() when -- 2.51.0