Small fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2819 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-09-30 22:41:32 +00:00
parent 2c5a232b08
commit 1c859f1629
2 changed files with 6 additions and 8 deletions

View File

@ -1,5 +1,7 @@
2001-10-01 Dekel Tsur <dekelts@tau.ac.il>
* buffer.C (asciiParagraph): Treat '\\' as other chars.
* paragraph.C (asString): Do not ignore newline/hfill chars when
copying to the clipboard.

View File

@ -1890,10 +1890,6 @@ string const Buffer::asciiParagraph(Paragraph const * par,
buffer << "\t";
break;
case '\\':
buffer << "\\";
break;
default:
if ((linelen > 0) && (currlinelen > (linelen - 10)) &&
(c == ' ') && ((i + 2) < par->size()))
@ -1909,11 +1905,11 @@ string const Buffer::asciiParagraph(Paragraph const * par,
buffer << " ";
currlinelen += (ltype_depth-depth)*2;
}
} else if (c != '\0')
} else if (c != '\0') {
buffer << c;
else if (c == '\0')
lyxerr[Debug::INFO] << "writeAsciiFile: NULL char in structure." << endl;
++currlinelen;
} else
lyxerr[Debug::INFO] << "writeAsciiFile: NULL char in structure." << endl;
break;
}
}