Hi!
in bebot 0.4 the code for cut_size is this:
<..snippy..>
foreach($content as $line)
{
if ((strlen($result[$page]) + strlen($line) + 12) < $this -> maxsize)
$result[$page] .= $line . "\n";
else
{
$page++;
$result[$page] .= $line . "\n";
}
}
<..snippy..>
i suggest adding something like this:
<..snippy..>
foreach($content as $line)
{
if ((strlen($result[$page]) + strlen($line) + 12) > $this -> maxsize) or (strpos($line,"\pb")>0 {
$page++;
$result[$page] .= $line . "\n";
} else {
$result[$page] .= $line . "\n";
}
}
<..snippy..>
Sorry, my php is not yet that skilled...
That way, we can force "pagebreaks". I am programming a shop module and my shop list is constantly screwed up by pagebreaks.
just my 2ct, but it would be awasome, if something like this will come up.
regards