]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetNewline.cpp
Add NewlineCmd InsetLayout and Argument option
[features.git] / src / insets / InsetNewline.cpp
index b10954d4da659210f8192c273c7b47273bd2d87d..b20886c8301fc57cd833054e8095960bdc180193 100644 (file)
@@ -146,7 +146,9 @@ void InsetNewline::latex(otexstream & os, OutputParams const & rp) const
 {
        switch (params_.kind) {
                case InsetNewlineParams::NEWLINE:
-                       if (rp.inTableCell == OutputParams::PLAIN)
+                       if (!rp.newlinecmd.empty())
+                               os << "\\" << rp.newlinecmd << "\n";
+                       else if (rp.inTableCell == OutputParams::PLAIN)
                                os << "\\newline\n";
                        else
                                os << "\\\\\n";