Hard CR management changes, by Sir Raorn.

This commit is contained in:
Jacobo Tarrío 2000-10-12 14:15:22 +00:00
parent a139901f24
commit e2dd4e2a36

View File

@ -421,13 +421,13 @@ void LoadText(GMsg* msg, const char* textfile) {
while(fgets(buf, PBUFSIZE, fp)) { while(fgets(buf, PBUFSIZE, fp)) {
strsrep(buf, "\t", tabspaces); // Expand tabs strsrep(buf, "\t", tabspaces); // Expand tabs
if(strneql(buf, hardline, hardlen)) { if(EDIT->HardLines() and strneql(buf, hardline, hardlen)) {
hardcr = not hardcr; hardcr = not hardcr;
if(*txtptr == LF) if(*txtptr == LF)
*txtptr = CR; *txtptr = CR;
if(*txtptr) if(*txtptr)
txtptr++; txtptr++;
strcpy(buf, "\r"); continue;
} }
else { else {
ptr = buf; ptr = buf;