Manage \n within string for sci2exp 93/14993/1
Bruno JOFRET [Wed, 6 Aug 2014 15:36:24 +0000 (17:36 +0200)]
Change-Id: Ie407b67860ec7028d6d6e0aa2b7a647713f6f185

scilab/modules/string/macros/sci2exp.sci

index 99673cf..3737801 100644 (file)
@@ -111,6 +111,7 @@ function t=str2exp(a,lmax)
     a=strsubst(a,quote,quote+quote)
     dquote=""""
     a=strsubst(a,dquote,dquote+dquote)
+    a = strsubst(a, ascii(10), """+ascii(10)+""")
     a=quote(ones(a))+a+quote(ones(a))
 
     for i=1:m