From: Jérôme Benoit Date: Fri, 9 Mar 2018 23:32:32 +0000 (+0100) Subject: TD2: Avoid to duplicate newline. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4ab67210b63fb7157f789bb73a3fa496ca8f8aab;p=TD_SR.git TD2: Avoid to duplicate newline. Signed-off-by: Jérôme Benoit --- diff --git a/.gitignore b/.gitignore index b5705d3..885da23 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ hs_err_pid* # editor trash *.swp *~ + +.DS_Store diff --git a/TD2/ClientSimplifie.java b/TD2/ClientSimplifie.java index c5eb31a..f5ccb40 100644 --- a/TD2/ClientSimplifie.java +++ b/TD2/ClientSimplifie.java @@ -44,7 +44,7 @@ public class ClientSimplifie { } public void sendMsg(String msg) { - ecriture.println(msg + "\n"); + ecriture.println(msg); ecriture.flush(); }