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
This commit is contained in:
Pavel Sanda 2011-08-11 21:39:04 +00:00
parent 9ac5a7a60a
commit b19410d232

View File

@ -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;
}