fix ascii export with insets

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3325 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-01-10 10:38:49 +00:00
parent a02a2714dc
commit 80a721459f
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2002-01-10 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* buffer.C (asciiParagraph): avoid outputing a word twice after
an inset.
* lyxrc.C (getDescription): document that document_path and
template_path can be empty.

View File

@ -1918,8 +1918,10 @@ string const Buffer::asciiParagraph(Paragraph const * par,
{
Inset const * inset = par->getInset(i);
if (inset) {
if (linelen > 0)
if (linelen > 0) {
buffer << word.str();
word.str("");
}
if (inset->ascii(this, buffer, linelen)) {
// to be sure it breaks paragraph
currlinelen += linelen;