Wordwrap in 2.2.x again

Darius Matuliauskas darius@lnk.lt
Wed, 25 Jul 2001 16:35:00 +0200


Hi there,

    My until recently used 2.2.3 was using a wrap_message($tmsg) in
/imp/message.php3 to wrap message text. The latest 2.2.6, however, is
missing that.

    Could anybody explain to me the mechanism of wrapping a message text
that still comes in <pre> tags in the latest versions? Why don't you any
longer use wrap_message()? I guess there should even be a separate
$default-> variable for setting wrap width, but... if you drop the 2.2.x
branch... then whatever. :)

There have been similar questions on this earlier, so for those who couldn't
find the manual solution:
you may simply change the line 138 (imp2.2.6) of /imp/message.php3 from

                      $tmsg = '<pre>' . $tmsg . '</pre>';
to
                      $tmsg = '<pre>' . wrap_message($tmsg) . '</pre>';

It works for me as it used to in 2.2.3.

Regards,

    Darius Matuliauskas
    LNK TV
    Vilnius, Lithuania