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

Merge pull request #571 from sezuan/fix_export_term

fixed erl_prettypr in encode_term
This commit is contained in:
Evgeny Khramtsov 2015-05-17 22:44:14 +03:00
commit e66b45d886

View File

@ -193,7 +193,8 @@ to_bool(_) -> false.
encode_term(Term) -> encode_term(Term) ->
escape(list_to_binary( 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) -> decode_term(Bin) ->
Str = binary_to_list(<<Bin/binary, ".">>), Str = binary_to_list(<<Bin/binary, ".">>),