From: Michael Schmitt Date: Thu, 15 Feb 2007 23:44:33 +0000 (+0000) Subject: * src/insets/insetspace.[Ch]: X-Git-Tag: 1.6.10~10801 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=922dbdb1db206467805a2a2b45a35bd037a110dd;p=features.git * src/insets/insetspace.[Ch]: * src/insets/insetoptarg.[Ch]: * src/insets/insetlabel.C: fix plaintext() git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17210 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/insetlabel.C b/src/insets/insetlabel.C index 3d995c3ea0..682b98f546 100644 --- a/src/insets/insetlabel.C +++ b/src/insets/insetlabel.C @@ -86,7 +86,7 @@ void InsetLabel::doDispatch(LCursor & cur, FuncRequest & cmd) int InsetLabel::latex(Buffer const &, odocstream & os, - OutputParams const &) const + OutputParams const &) const { os << escape(getCommand()); return 0; @@ -94,15 +94,16 @@ int InsetLabel::latex(Buffer const &, odocstream & os, int InsetLabel::plaintext(Buffer const &, odocstream & os, - OutputParams const &) const + OutputParams const &) const { - os << '<' << getParam("name") << '>'; - return 0; + docstring str = getParam("name"); + os << '<' << str << '>'; + return 2 + str.size(); } int InsetLabel::docbook(Buffer const & buf, odocstream & os, - OutputParams const & runparams) const + OutputParams const & runparams) const { os << "