If you could, would it be possible to post an excerpt of a dump of the file through xxd/od? This will help determine exactly what the file contains at these junctures. Or, perhaps you can even determine from such output exactly what is following the CR. If it truly is a CR/LF pair, and your 'ff' is "unix", then using

        :%s/\r\n

should do the trick.

Something like

xxd infile.wp | sed -n '30,50p'

to extract lines 30-50 of the dump where the behavior/characters shows up (adjusting those line numbers until you have a window of interest) will allow for a more isolated piece if you intend to post some to the list.

Alternatively, if there are characters you don't use in your file, you could do something like

        tr '\r\n' '#@' < infile.wp > outfile.txt

to replace any instance of either CR or LF with a hash or at-sign respectively (choose your own characters according to what you know of the file contents) which will make them easier for you to spot.

Well, I extracted the offending code and looked at it with less:
it reads :^M<8A>

And, with xdd, I get

arcadia:~/tmp:$ xxd extract
0000000: 200d 8a20 0d0a

Is this any help?


This message has been scanned for viruses by BlackSpider MailControl - 
www.blackspider.com

Reply via email to