Skip to content

Commit

Permalink
correctly handle new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Gatlin Johnson committed Sep 20, 2011
1 parent 5e35dfa commit 1faced9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@

$.ev.loop('/recv/'+UUID, {
response: function(ev) {
var r = ev.response;
r = r.replace("\n","<br>");
console.log(ev);
$("#response").html($("#response").html() +
"<div>"+ev.response+"</div>");
$("#response").html($("#response").html() + r);
},
});
};
Expand Down

0 comments on commit 1faced9

Please sign in to comment.