Page 1 of 1

Bug in Paragraph Chunk

Posted: Sun May 25, 2014 12:48 am
by Peter Wood
The new paragraph chunk returns empty when the string being chunked does not contain the end of paragraph mark.

In the message box

Code: Select all

put "The cat sat on the mat. The mat was on the floor." & return & "my second paragraph" into tText
put "***" & the first paragraph of tText & "***"
Result

Code: Select all

******
Line still works as expected

Code: Select all

put "The cat sat on the mat. The mat was on the floor." & return & "my second paragraph" into tText
put "***" & the first line of tText & "***"
Result

Code: Select all

***The cat sat on the mat. The mat was on the floor.***
I have filed bug number 12527

Re: Bug in Paragraph Chunk

Posted: Sun May 25, 2014 3:43 am
by Simon
Hi Peter,
With Win7 and LC 7dp5

Code: Select all

put "The cat sat on the mat. The mat was on the floor." & return & "my second paragraph" into tText
put "***" & the first paragraph of tText & "***"
returns

Code: Select all

***The cat sat on the mat. The mat was on the floor.***
Simon

Re: Bug in Paragraph Chunk

Posted: Sun May 25, 2014 4:18 am
by Peter Wood
Thanks Simon. I was running LC 7.0 DP 5 under OS X 10.7.5.

Re: Bug in Paragraph Chunk

Posted: Sun May 25, 2014 4:32 am
by Simon
Hi Peter,
OSX 10.9.2 LC 7 dp5
Does show the result you received.

Simon