* src/insets/insettoc.[Ch]:

* src/insets/insetspecialchar.[Ch]: fix plaintext(); WS changes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17231 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2007-02-17 11:59:42 +00:00
parent 6d2a778724
commit 757d2bc963
4 changed files with 15 additions and 15 deletions

View File

@ -197,16 +197,16 @@ int InsetSpecialChar::plaintext(Buffer const &, odocstream & os,
switch (kind_) {
case HYPHENATION:
case LIGATURE_BREAK:
break;
return 0;
case END_OF_SENTENCE:
os << '.';
break;
return 1;
case LDOTS:
os << "...";
break;
return 3;
case MENU_SEPARATOR:
os << "->";
break;
return 2;
}
return 0;
}

View File

@ -17,6 +17,7 @@
#include "funcrequest.h"
#include "gettext.h"
#include "metricsinfo.h"
#include "outputparams.h"
#include "TocBackend.h"
#include "support/std_ostream.h"
@ -56,14 +57,13 @@ InsetBase::Code InsetTOC::lyxCode() const
int InsetTOC::plaintext(Buffer const & buffer, odocstream & os,
OutputParams const &) const
OutputParams const & runparams) const
{
os << getScreenLabel(buffer) << "\n\n";
buffer.tocBackend().writePlaintextTocList(getCmdName(), os);
os << "\n";
return 0;
return runparams.linelen; // start with column 0 in new line
}