At 3:29 pm -0500 19/03/01, Ronald J Kimball wrote: > > So far as I can see it is a bug in LowMem. > >Actually, according to the explanation John Baxter posted, each section >must use an even number of bytes. This means there will be an extra >padding byte added to a section whose length is odd. > >I think adding a line to your code should fix this bug: > $len % 2 and $len++; Yesss. Of course. I missed the point again. Thanks. With that line your original script runs fine. I had a heap of files with one-line styled text examples to dump into the clipboard. Every single one had an odd number of characters. Grrrr... Alan Fry
- Re: [MacPerl] StyledText data into a record of text and s... Nobumi Iyanaga
- Re: [MacPerl] StyledText data into a record of text ... Gero Herrmann
- Re: [MacPerl] StyledText data into a record of text and s... Bart Lateur
- Re: [MacPerl] StyledText data into a record of text ... Nobumi Iyanaga
- Re: [MacPerl] StyledText data into a record of text ... John W Baxter
- Re: [MacPerl] StyledText data into a record of text and s... Ronald J Kimball
- Re: [MacPerl] StyledText data into a record of text and s... Alan Fry
- Re: [MacPerl] StyledText data into a record of text and s... Ronald J Kimball
- Re: [MacPerl] StyledText data into a record of text and s... Bart Lateur
- [MacPerl] How to generate StyledText data and "paste... Alan Fry
- [MacPerl] How to generate StyledText data and "... Nobumi Iyanaga