From 80328d2053869dc089c23c25adbed4167d7bf0b1 Mon Sep 17 00:00:00 2001 From: Michael Schmitt Date: Tue, 20 Feb 2007 18:02:46 +0000 Subject: [PATCH] * src/insets/insetcommand.C: fix plaintext() output git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17277 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/insetcommand.C | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/insets/insetcommand.C b/src/insets/insetcommand.C index 6a1213aa53..6f58d51840 100644 --- a/src/insets/insetcommand.C +++ b/src/insets/insetcommand.C @@ -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(); }