>>>>> "Garst" == Garst R Reese <[EMAIL PROTECTED]> writes:
Garst> Attached are two examples. example.lyx and example2.lyx. They
Garst> should look identical when viewed in lyx, but example.lyx is
Garst> messed up when viewed in gv. The diffence is that I put a
Garst> page-break below at the end of the last line in the first poem
Garst> in example, and page-break above at the beginning of the title
Garst> of the second poem.
This is indeed a bug in the LaTeX output routine, which forgets a \n
when one of the paragraphs of an environment has a slight difference
from the others (the page break, in your case). I really wonder why
nobody ever noticed it.
It seems to me that the following patch fixes the problem. Could you
please try it?
JMarc
Index: src/paragraph.C
===================================================================
RCS file: /usr/local/lyxsrc/cvsroot/lyx-1_0_x/src/paragraph.C,v
retrieving revision 1.13
diff -u -r1.13 paragraph.C
--- paragraph.C 1999/06/11 17:22:27 1.13
+++ paragraph.C 1999/07/20 17:17:15
@@ -2049,9 +2049,10 @@
// if its the last paragraph of the current environment
// skip it otherwise fall through
if (par
- && !par->HasSameLayout(this)) {
+ && (par->layout != layout
+ || par->depth != depth
+ || par->pextra_type != pextra_type))
break;
- }
default:
if (!(footnoteflag != LyXParagraph::NO_FOOTNOTE
&& footnotekind != LyXParagraph::FOOTNOTE