When there is a .txt file as an attachment, UE displays the file in grey. However some files are displayed with missing characters at the beginning of the line.
Looking at the hex of the file, it appears that the file contains Carriage Returns only, not followed by Line Feed. So what is happening is that UE is reading a CR then expecting a LF. So it sucks in the next character and throws it away.
For example "ABCDEFcrIJKLcrcrMNOPcrQRSTUV" comes out as
ABCDEF
JKL
MNOP
RSTUV
I realise the format of the original file is wrong, but it would be nice if UE tried its best to ignore that.
Missing char after Carriage Return in .txt preview
actually it is then an invalid text file format. as to usenet formats <CR> <LF> is enforced, as to attachments (show inline) UE just shows something, but basically it shows both windows and unix text files well.
for windows files the standard it <CR> <LF> and for unix files <LF>.
there is no such thing as <CR> alone.
in this particular case i could check it, just weird, give me here or pm the coordinates of the attachment, normally you don't see such files at all. if you open such a file in notepad you see [] like character instead of <CR>, UltraEdit unless you "convert file to dos format" gets puzzled and puts a lot of ? characters in the beginning of every line following the <CR> character (I changed one <CR><LN> to <CR><CR> in a text file).
for windows files the standard it <CR> <LF> and for unix files <LF>.
there is no such thing as <CR> alone.
in this particular case i could check it, just weird, give me here or pm the coordinates of the attachment, normally you don't see such files at all. if you open such a file in notepad you see [] like character instead of <CR>, UltraEdit unless you "convert file to dos format" gets puzzled and puts a lot of ? characters in the beginning of every line following the <CR> character (I changed one <CR><LN> to <CR><CR> in a text file).
Thanks
Cheers Alex - no it is not important and the problem lies with the poster of the file.
I don't know if it is significant but here is a header line from one poster of a "bad" text file:
X-Newsposter: YENC-POWER-POST Build 3 (Modified POWER-POST www.CosmicWolf.com)
I don't know if it is significant but here is a header line from one poster of a "bad" text file:
X-Newsposter: YENC-POWER-POST Build 3 (Modified POWER-POST www.CosmicWolf.com)