]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBranch.cpp
de.po
[lyx.git] / src / insets / InsetBranch.cpp
index a2148201fe5b03bc01d423bd9943719dc156d4c1..88d00e641e486a7b76507d0ae40ee652badf9844 100644 (file)
@@ -292,8 +292,11 @@ bool InsetBranch::producesOutput() const
 
 void InsetBranch::latex(otexstream & os, OutputParams const & runparams) const
 {
-       if (producesOutput())
-               InsetText::latex(os, runparams);
+       if (producesOutput()) {
+               OutputParams rp = runparams;
+               rp.inbranch = true;
+               InsetText::latex(os, rp);
+       }
 }
 
 
@@ -402,7 +405,10 @@ void InsetBranchParams::write(ostream & os) const
 
 void InsetBranchParams::read(Lexer & lex)
 {
-       lex >> branch;
+       // There may be a space in branch name
+       // if we wanted to use lex>>, the branch name should be properly in quotes
+       lex.eatLine();
+       branch = lex.getDocString();
        lex >> "inverted" >> inverted;
 }