Munzir Taha Obeid wrote:
> > Does the problem go away if you place the \end{arabtex} on a line of its
> > own?
>
> Yes, if I place the \end{arabtex} in a line of its known or if I place a
> space before it, the problem goes away completely. 

The attached patch adds a linebreak before \end{environment} tags. Apart from 
fixing the arabtex bug, the exported LaTeX looks just better IMO.

Regards,
Juergen.
Index: src/ChangeLog
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/ChangeLog,v
retrieving revision 1.1376
diff -u -r1.1376 ChangeLog
--- src/ChangeLog	2003/06/13 07:37:46	1.1376
+++ src/ChangeLog	2003/06/13 19:47:32
@@ -1,3 +1,7 @@
+2003-06-13  Juergen Spitzmueller  <[EMAIL PROTECTED]>
+
+	*paragraph_funcs.C (TeXEnvironment): linebreak before \end{} tag
+
 2003-06-13  André Pِnitz  <[EMAIL PROTECTED]>

 	* tabular.h: compactification
Index: src/paragraph_funcs.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/paragraph_funcs.C,v
retrieving revision 1.45
diff -u -r1.45 paragraph_funcs.C
--- src/paragraph_funcs.C	2003/06/07 17:45:41	1.45
+++ src/paragraph_funcs.C	2003/06/13 19:47:35
@@ -408,7 +408,7 @@
 		 && par->params().leftIndent() == pit->params().leftIndent());

 	if (style->isEnvironment()) {
-		os << "\\end{" << style->latexname() << "}\n";
+		os << '\n' << "\\end{" << style->latexname() << "}\n";
 		texrow.newline();
 	}

Reply via email to