mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
* 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:
parent
6d2a778724
commit
757d2bc963
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user