X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLayout.cpp;h=be31ccb5a1ad8753143721a081ba53d590171e64;hb=70b3d3adccdda2daf9346b995575f9ee658ac5d3;hp=e4b6b3e3db20e7386396b83804ae4996561fd709;hpb=ed44bbddee012f1cb38752142aba8e068dce47d2;p=features.git diff --git a/src/Layout.cpp b/src/Layout.cpp index e4b6b3e3db..be31ccb5a1 100644 --- a/src/Layout.cpp +++ b/src/Layout.cpp @@ -1076,6 +1076,9 @@ void Layout::readArgument(Lexer & lex) } else if (tok == "decoration") { lex.next(); arg.decoration = lex.getString(); + } else if (tok == "newlinecmd") { + lex.next(); + arg.newlinecmd = lex.getString(); } else if (tok == "font") { arg.font = lyxRead(lex, arg.font); } else if (tok == "labelfont") { @@ -1146,6 +1149,8 @@ void writeArgument(ostream & os, string const & id, Layout::latexarg const & arg os << "\t\tRequires \"" << arg.requires << "\"\n"; if (!arg.decoration.empty()) os << "\t\tDecoration \"" << arg.decoration << "\"\n"; + if (!arg.newlinecmd.empty()) + os << "\t\tNewlineCmd \"" << arg.newlinecmd << "\"\n"; if (arg.font != inherit_font) lyxWrite(os, arg.font, "Font", 2); if (arg.labelfont != inherit_font)