* src/insets/insetcommand.C: fix plaintext() output

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17277 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2007-02-20 18:02:46 +00:00
parent e8084b3109
commit 80328d2053

View File

@ -17,6 +17,7 @@
#include "dispatchresult.h"
#include "funcrequest.h"
#include "FuncStatus.h"
#include "gettext.h"
#include "lyxlex.h"
#include "metricsinfo.h"
@ -91,10 +92,12 @@ int InsetCommand::latex(Buffer const &, odocstream & os,
}
int InsetCommand::plaintext(Buffer const &, odocstream &,
int InsetCommand::plaintext(Buffer const &, odocstream & os,
OutputParams const &) const
{
return 0;
docstring str = "[" + _("LaTeX Command: ") + from_utf8(getCmdName()) + "]";
os << str;
return str.size();
}