From 9bd39667813ca15e9f2c77817e441b09d616e43c Mon Sep 17 00:00:00 2001 From: Kamil Kieliszczyk Date: Wed, 14 Aug 2013 00:03:55 +0200 Subject: [PATCH] Fix response of who joined the group --- demos/chat/chat1.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/chat/chat1.erl b/demos/chat/chat1.erl index 0bb7825..61bd1df 100644 --- a/demos/chat/chat1.erl +++ b/demos/chat/chat1.erl @@ -8,7 +8,7 @@ running(Browser, L) -> receive {Browser, {struct, [{join,Who}]}} -> Browser ! [{cmd,append_div},{id,scroll}, - {txt, list_to_binary([Who, " joined the group\n"])}], + {txt, list_to_binary([Who, " joined the group", "
"])}], L1 = [Who,"
"|L], Browser ! [{cmd,fill_div}, {id,users}, {txt, list_to_binary(L1)}],