terms in one line in Erlang R12 (EJAB-503)
SVN Revision: 1227
+2008-03-12 Badlop <badlop@process-one.net>
+
+ * src/web/ejabberd_web_admin.erl (term_to_string): Show Erlang
+ terms in one line in Erlang R12 (EJAB-503)
+
2008-03-11 Badlop <badlop@process-one.net>
* src/ejabberd_s2s_in.erl (get_cert_domains): When compiling with
term_to_string(T) ->
- lists:flatten(io_lib:format("~1000000p", [T])).
+ StringParagraph = lists:flatten(io_lib:format("~1000000p", [T])),
+ %% Remove from the string all the carriage returns characters
+ {ok, StringLine, _} = regexp:gsub(StringParagraph, "\\n ", ""),
+ StringLine.
term_to_id(T) ->
jlib:encode_base64(binary_to_list(term_to_binary(T))).