]> git.lyx.org Git - lyx.git/blobdiff - src/tabular.C
fix lookup problem for \vert.
[lyx.git] / src / tabular.C
index d38a35714dc56a303e2f4d7c0da129be3e15495c..7f05319dbdf454f72bca1bde9462e9287e1c771e 100644 (file)
@@ -1462,7 +1462,8 @@ void LyXTabular::OldFormatRead(BufferParams const & bp,
                        continue;
                if (token == "\\layout"
                        || token == "\\end_float"
-                       || token == "\\end_deeper") {
+                       || token == "\\end_deeper")
+               {
                        lex.pushToken(token);
 #ifndef NO_COMPABILITY
                        // Here we need to insert the inset_ert_contents into the last
@@ -1471,6 +1472,12 @@ void LyXTabular::OldFormatRead(BufferParams const & bp,
 #endif
                        break;
                }
+#ifndef NO_COMPABILITY
+               if (token == "\\newline")
+                       // Here we need to insert the inset_ert_contents into the last
+                       // cell of the tabular.
+                       owner_->bufferOwner()->insertErtContents(par, pos, false);
+#endif
                if (owner_->bufferOwner()->parseSingleLyXformat2Token(lex, par,
                                                                                                                          return_par,
                                                                                                                          token, pos,