From 96015189f40635d0f617eed2b6d4d6ee773e1fd5 Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Tue, 9 Mar 2010 08:19:14 +0000 Subject: OTP-8501 stdlib: erl_pp no longer quotes atoms in types The erlang pretty printer (erl_pp) no longer quotes atoms in types. --- lib/stdlib/src/erl_pp.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/stdlib/src/erl_pp.erl b/lib/stdlib/src/erl_pp.erl index 93c2541e80..0859bf0466 100644 --- a/lib/stdlib/src/erl_pp.erl +++ b/lib/stdlib/src/erl_pp.erl @@ -170,8 +170,7 @@ ltype({type,Line,T,Ts}) -> ltype({remote_type,Line,[M,F,Ts]}) -> simple_type({remote,Line,M,F}, Ts); ltype({atom,_,T}) -> - %% Follow the convention to always quote atoms (in types): - leaf([$',atom_to_list(T),$']); + leaf(write(T)); ltype(E) -> lexpr(E, 0, none). -- cgit v1.2.3