From: Pavel Sanda Date: Thu, 11 Aug 2011 21:39:04 +0000 (+0000) Subject: Fix #7720: plain text export of branches should contain only content of the inset. X-Git-Tag: 2.1.0beta1~2828 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b19410d232db62f922b319ed737f0738e864ea82;p=features.git Fix #7720: plain text export of branches should contain only content of the inset. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39474 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetBranch.cpp b/src/insets/InsetBranch.cpp index 4888992ba7..c7a01ee360 100644 --- a/src/insets/InsetBranch.cpp +++ b/src/insets/InsetBranch.cpp @@ -216,11 +216,8 @@ int InsetBranch::plaintext(odocstream & os, if (!isBranchSelected()) return 0; - os << '[' << buffer().B_("branch") << ' ' << params_.branch << ":\n"; - InsetText::plaintext(os, runparams); - os << "\n]"; - - return PLAINTEXT_NEWLINE + 1; // one char on a separate line + int len = InsetText::plaintext(os, runparams); + return len; }