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)) {
|
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;
|
||||||
|
Reference in New Issue
Block a user