From e2dd4e2a36dc79a372678fd4468652afa60759d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacobo=20Tarr=C3=ADo?= Date: Thu, 12 Oct 2000 14:15:22 +0000 Subject: [PATCH] Hard CR management changes, by Sir Raorn. --- golded3/gemsgs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/golded3/gemsgs.cpp b/golded3/gemsgs.cpp index f00b29e..05b3ca4 100644 --- a/golded3/gemsgs.cpp +++ b/golded3/gemsgs.cpp @@ -421,13 +421,13 @@ void LoadText(GMsg* msg, const char* textfile) { while(fgets(buf, PBUFSIZE, fp)) { strsrep(buf, "\t", tabspaces); // Expand tabs - if(strneql(buf, hardline, hardlen)) { + if(EDIT->HardLines() and strneql(buf, hardline, hardlen)) { hardcr = not hardcr; if(*txtptr == LF) *txtptr = CR; if(*txtptr) txtptr++; - strcpy(buf, "\r"); + continue; } else { ptr = buf;