From 4f4a8203b36dd47f4bbd8c775490888609e2c23d Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 16 Jan 2011 19:14:14 +0000 Subject: [PATCH] Fix bug #7239, or at least try to do so. We need to output the command here. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37229 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/output_latex.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 63e61ac4b1..14014f4c1a 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -444,9 +444,23 @@ void TeXOnePar(Buffer const & buf, if (style.pass_thru) { Font const outerfont = text.outerFont(pit); + // can we have pass_thru for lists? if so, we need to do the whole + // switch and kaboodle here. + os << '\\' << from_ascii(style.latexname()); + + // Separate handling of optional argument inset. + if (style.optargs != 0 || style.reqargs != 0) { + int ret = latexArgInsets(par, os, runparams, style.reqargs, style.optargs); + while (ret > 0) { + texrow.newline(); + --ret; + } + } + else + os << from_ascii(style.latexparam()); par.latex(bparams, outerfont, os, texrow, runparams, start_pos, end_pos); - os << '\n'; + os << from_ascii("}\n"); texrow.newline(); if (!style.parbreak_is_newline) { os << '\n'; -- 2.39.2