[lasem] [itex2mml] Ignore carriage return character in itex strings.



commit fe2013023ca25e3eaec3a91906cfbb7e52b8456c
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Wed Nov 4 21:36:20 2009 +0100

    [itex2mml] Ignore carriage return character in itex strings.
    
    Fix for https://bugzilla.gnome.org/show_bug.cgi?id=599508

 itex2mml/itex2MML.l               |    2 +-
 test/mathml/tex/misc/cases-cr.png |  Bin 0 -> 2867 bytes
 test/mathml/tex/misc/cases-cr.tex |    7 +++++++
 3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/itex2mml/itex2MML.l b/itex2mml/itex2MML.l
index cc63902..a3c96e8 100644
--- a/itex2mml/itex2MML.l
+++ b/itex2mml/itex2MML.l
@@ -869,7 +869,7 @@ int itex2MML_displaymode = 0;
 "\&#x"[a-fA-F0-9]+";"  {yylval=itex2MML_copy_string(yytext); return MI;}
 
 "\n"             itex2MML_lineno++;
-[\t ]+           ;
+[\r\t ]+         ;
 
 
 .              {return UNKNOWNCHAR;}
diff --git a/test/mathml/tex/misc/cases-cr.png b/test/mathml/tex/misc/cases-cr.png
new file mode 100644
index 0000000..20653d2
Binary files /dev/null and b/test/mathml/tex/misc/cases-cr.png differ
diff --git a/test/mathml/tex/misc/cases-cr.tex b/test/mathml/tex/misc/cases-cr.tex
new file mode 100644
index 0000000..8d7132e
--- /dev/null
+++ b/test/mathml/tex/misc/cases-cr.tex
@@ -0,0 +1,7 @@
+$$
+f(x|\lambda) =
+\begin{cases}
+\lambda e^{-\lambda x} & x \geq 0, \\
+0 & \text{otherwise}
+\end{cases}
+$$



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]