Re: map and substitute problem with carriage return

2010-04-15 Thread epanda
Do you think this will work ? call map(myList,'substitute(v:val, ' . pattern . ', item\r \nreference\\2/referencetype\\3/typevaleur0/ valeurdescription\\1/description/item, )') sauvegarde dans un fichier temporaire let tmpfile = tempname()

Re: map and substitute problem with carriage return

2010-04-14 Thread Brett Stahlman
On Apr 14, 4:01 pm, epanda callingel...@hotmail.fr wrote: Hi, I am using this kind of func to substitute all my items list. map(myList,'substitute(v.val,myPattern,xml\n\\1/xml,)') All is working out of carriage return, note that I use writefile to store all myList into one file with b

map and substitute problem with carriage return

2010-04-14 Thread epanda
Hi, I am using this kind of func to substitute all my items list. map(myList,'substitute(v.val,myPattern,xml\n\\1/xml,)') All is working out of carriage return, note that I use writefile to store all myList into one file with b mode. It does not put carriage return where I put \n. Why? Thank