]> git.lyx.org Git - lyx.git/blobdiff - lib/reLyX/BasicLyX.pm
Revert the fix; it doesn't strip trailing whitespace correctly.
[lyx.git] / lib / reLyX / BasicLyX.pm
index 521e7ee056533200e73d4efabfe366eee8ee89c6..5e72be223fb691aabebf05f58848a670fd02aac4 100644 (file)
@@ -214,7 +214,7 @@ my %ExtraArgEnvironments = (
 );
 
 # Math environments are copied verbatim
-my $MathEnvironments = "(math|equation|displaymath|eqnarray(\\*)?)";
+my $MathEnvironments = "(math|displaymath|xxalignat|(equation|eqnarray|align|alignat|xalignat|multline|gather)(\\*)?)";
 # ListLayouts may have standard paragraphs nested inside them.
 my $ListLayouts = "Itemize|Enumerate|Description";
 
@@ -470,7 +470,7 @@ sub basic_lyx {
                    $thistable->nextcol;
                } else {warn "& is illegal outside a table!"}
 
-           } elsif ($name eq '\\\\' || $name eq '\\newline') {
+           } elsif ($name eq '\\\\' || $name eq '\\newline' || $name eq "\\tabularnewline") {
                &CheckForNewParagraph; # could be at beginning of par?
                 print OUTFILE "\n\\newline \n";