Word 1 to -1 Truncating Entire Paragraphs?

Sivakatirswami katir at hindu.org
Fri Nov 11 14:57:20 EST 2005


I am using a routine discuss on this list sometime back to kill  
vertical white space (extra cr's)  at the beginning and end of a  
large text chunk..

put word 1 to -1 of fld "transcript" into tFinalTranscript

But this is suddenly chopping off whole paragraphs and chars at the  
end of the file.
e.g. the following which represents the end of a file.

Le petite insect ki tappe dans la nuit. C'est une "cricket" en  
Creole.  La langue creole est tres jolie. So vocabulaire est tres  
pauvre, donc, il faut decrire toute les choses avec beaucoup des les  
petites mots tres jolie. Est Creole a le meme syntax que Anglais, pas  
comme le haute francaise de Paris!

plus de text ici

plus de text ici

ends up like this in the final output


<p>Le petite insect ki tappe dans la nuit. C'est une "cricket" en  
Creole.  La langue creole est tres jolie. So vocabulaire est tres  
pauvre,</p>

# the rest is missing.


I have test this by simply commenting out this line:

    -- put word 1 to -1 of fld "transcript" into tFinalTranscript
         put fld "transcript" into tFinalTranscript

and the entire transcript is delivered to the variable.. it's that "  
word 1 to -1" which is chopping of entire blocks of text...

This seems like a bug to me... or am I missing something?

Sivakatirswami









More information about the use-livecode mailing list