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

Tell io_lib:print to not care about line length, to avoid newlines in SQL export

This commit is contained in:
Badlop 2021-05-10 16:14:04 +02:00
parent 3b716d2cb0
commit 8e08703833

View File

@ -262,7 +262,7 @@ expr_to_term(Expr) ->
Term.
term_to_expr(Term) ->
list_to_binary(io_lib:print(Term)).
list_to_binary(io_lib:print(Term, 1, 999999, -1)).
-spec now_to_usec(erlang:timestamp()) -> non_neg_integer().
now_to_usec({MSec, Sec, USec}) ->