>>>>> "John" == John Levon <[EMAIL PROTECTED]> writes:

John> Probably won't build but it's a sketch ... comments ?

John> Note we could make it have a really big width but this would
John> actually just complicated rowBreakPoint() and we'd *still* have
John> to special case it anyway.

Concerning the following code:

+               // This is what the old META_NEWLINE code did.
+               if (inset->lyxCode() == Inset::NEWLINE_CODE) {
+                       // newlines are handled differently here than
+                       // the default in simpleTeXSpecialChars().
+                       if (!style.newline_allowed) {
+                               os << '\n';
+                       } else {
+                               if (open_font) {
+                                       column += 
running_font.latexWriteEndChanges(os, basefont, basefont);
+                                       open_font = false;
+                               }
+                               basefont = getLayoutFont(bparams);
+                               running_font = basefont;
+


You can probably make InsetNewline::noFontChange() return true, and
font setting will be closed and reopened later.

The test for style.newline_allowed can probably be moved to the inset
too. 

JMarc

Reply via email to