X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetNewline.cpp;h=b20886c8301fc57cd833054e8095960bdc180193;hb=70b3d3adccdda2daf9346b995575f9ee658ac5d3;hp=b10954d4da659210f8192c273c7b47273bd2d87d;hpb=ed44bbddee012f1cb38752142aba8e068dce47d2;p=features.git diff --git a/src/insets/InsetNewline.cpp b/src/insets/InsetNewline.cpp index b10954d4da..b20886c830 100644 --- a/src/insets/InsetNewline.cpp +++ b/src/insets/InsetNewline.cpp @@ -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";