diff options
author | Hans Bolinder <[email protected]> | 2017-06-29 16:38:12 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-09-15 17:07:48 +0200 |
commit | a443d41a1b7951137021e35ce480fbdd896f5cbc (patch) | |
tree | 43c78ff5e587fbd1650815e24af31ca50dc72706 /lib/compiler/src/core_pp.erl | |
parent | 15abdca7ef9c6fb7812f13829346db59173e5681 (diff) | |
download | otp-a443d41a1b7951137021e35ce480fbdd896f5cbc.tar.gz otp-a443d41a1b7951137021e35ce480fbdd896f5cbc.tar.bz2 otp-a443d41a1b7951137021e35ce480fbdd896f5cbc.zip |
compiler: Do not use deprecated functions in string(3)
Diffstat (limited to 'lib/compiler/src/core_pp.erl')
-rw-r--r-- | lib/compiler/src/core_pp.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/src/core_pp.erl b/lib/compiler/src/core_pp.erl index cff6c7098b..2516a9a1e1 100644 --- a/lib/compiler/src/core_pp.erl +++ b/lib/compiler/src/core_pp.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1999-2016. All Rights Reserved. +%% Copyright Ericsson AB 1999-2017. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -464,7 +464,7 @@ indent(#ctxt{indent=N}) -> N =< 0 -> ""; true -> - string:chars($\t, N div ?TAB_WIDTH, spaces(N rem ?TAB_WIDTH)) + lists:duplicate(N div ?TAB_WIDTH, $\t) ++ spaces(N rem ?TAB_WIDTH) end. nl_indent(Ctxt) -> [$\n|indent(Ctxt)]. |