]> git.lyx.org Git - features.git/commitdiff
Fix #7720: plain text export of branches should contain only content of the inset.
authorPavel Sanda <sanda@lyx.org>
Thu, 11 Aug 2011 21:39:04 +0000 (21:39 +0000)
committerPavel Sanda <sanda@lyx.org>
Thu, 11 Aug 2011 21:39:04 +0000 (21:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39474 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBranch.cpp

index 4888992ba7819da947374c016d5964b218c030ca..c7a01ee360fe4152dc09e32d1717a5cf79786df2 100644 (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;
 }