22 Sep
2007
22 Sep
'07
11:26 p.m.
Hi, there is a problem with the blog macro (Blog.Macros) when content length is greater than 400 and there is an html open tag right before the 400th position. E.g. content from position 390 to 428 is: "This <div class="foo">is a test </div>" 01234567890123456789012345678901234567 9 0 1 2 3 4 4 4 In this case the code below will insert "[...]This <div " as blog entry which destroys HTML formatting. This is an excerpt of the blog macro code: #set($content = $bentrydoc.display("extract", "view", $bentryobj)) #if($content=="") #set($content = $bentrydoc.display("content", "view", $bentryobj)) #if($content.length()>400) #set($i = $content.lastIndexOf(" ",400)) Guido