Minor annoyance when editing.

From: andy 2 Nov 2007 21:34
To: Matt 12 of 14
aha. brilliant. that involves message_split_fiddle doesn't it?
From: Matt 2 Nov 2007 22:10
To: andy 13 of 14

Nope, it turned out it was the MessageText class in post.inc.php.

 

Splitting the signature from the post content resulted in a trailing new-line char being added to the post content which when passed through add_paragraphs() was converted to a <br /> which forced Beehive to use full HTML mode rather than auto-line break mode.

 

Fixed it by simply trim()-ing the content before passing it through add_paragraphs().

From: andy 2 Nov 2007 23:57
To: Matt 14 of 14
niice. i bet i'd hate my old code so much if i looked at it now - i tend to find fault with code i wrote a week before, nevermind [however many years it's been since i did anything for BH]!