Hard CR management changes, by Sir Raorn.
This commit is contained in:
parent
a139901f24
commit
e2dd4e2a36
@ -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;
|
||||
|
Reference in New Issue
Block a user