Author: rgheck
Date: Sun Jan 16 20:14:14 2011
New Revision: 37229
URL: http://www.lyx.org/trac/changeset/37229

Log:
Fix bug #7239, or at least try to do so. We need to output the command
here.

Modified:
   lyx-devel/trunk/src/output_latex.cpp

Modified: lyx-devel/trunk/src/output_latex.cpp
==============================================================================
--- lyx-devel/trunk/src/output_latex.cpp        Sun Jan 16 19:13:37 2011        
(r37228)
+++ lyx-devel/trunk/src/output_latex.cpp        Sun Jan 16 20:14:14 2011        
(r37229)
@@ -444,9 +444,23 @@
 
        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';

Reply via email to