From add17fd2668118b7c00fa0cb7065b8c34836d886 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 10 Feb 2010 10:58:29 +0100 Subject: [PATCH] Fix copying of WB Chat Window contents All line breks were lost on copy-pasting the contents of a chat window. Adding CR to each outputted line in the front-end (wchat.c) solves this. --- winboard/wchat.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/winboard/wchat.c b/winboard/wchat.c index 93e5ee1..4cf8dce 100644 --- a/winboard/wchat.c +++ b/winboard/wchat.c @@ -279,5 +279,7 @@ void OutputChatMessage(int partner, char *text) { if(!chatHandle[partner]) return; + int n = strlen(text); + text[n+1] = 0; text[n] = '\n'; text[n-1] = '\r'; // Needs CR to not lose line breaks on copy-paste InsertIntoMemo(chatHandle[partner], text); } -- 1.7.0.4