summaryrefslogtreecommitdiff
path: root/lang/erlang14/files/patch-lib_stdlib_src_io__lib__pretty.erl
blob: 0f3305e2fd57783aabbb5eb0b62911eabad56769 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$FreeBSD$

--- lib/stdlib/src/io_lib_pretty.erl.orig
+++ lib/stdlib/src/io_lib_pretty.erl
@@ -159,7 +159,9 @@
 %% Reuse the list created by io_lib:write_binary()...
 pp_binary([LT,LT,S,GT,GT], Col, Ll, Ind, LD) ->
     N = max(8, Ll - Col - LD),
-    [LT,LT,pp_binary(S, N, N, Ind),GT,GT].
+    [LT,LT,pp_binary(S, N, N, Ind),GT,GT];
+pp_binary(S, _Col, _Ll, _Ind, _LD) ->
+    S.
 
 pp_binary([BS, $, | S], N, N0, Ind) ->
     Len = length(BS) + 1,