25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

fixed erl_prettypr in encode_term

This commit is contained in:
Matthias Rieber 2015-05-17 19:15:52 +02:00
parent 084d0c4efe
commit f5c9dfbc93

View File

@ -193,7 +193,8 @@ to_bool(_) -> false.
encode_term(Term) ->
escape(list_to_binary(
erl_prettypr:format(erl_syntax:abstract(Term)))).
erl_prettypr:format(erl_syntax:abstract(Term),
[{paper, 65535}, {ribbon, 65535}]))).
decode_term(Bin) ->
Str = binary_to_list(<<Bin/binary, ".">>),