The _filter_autop function (which automatically converts newlines to paragraphs/brs) inserts a rogue <br class="clear" /> at the end of the text, which can mess up theme display and such when check_markup() is used. I looked through the function briefly but it ventures into Scary Regex Hell (tm) which is beyond my level of grasping just at the moment.

Comments

sun’s picture

http://drupal.org/node/62472 seems to be affected from this bug.

magico’s picture

Version: 4.7.2 » x.y.z

I could not find any reference to code that inserts "clear" in 4.7.3 neither in HEAD.

@webchick: can you give a quick look in HEAD, to check if it still inserts the "clear"?

RobRoy’s picture

Version: x.y.z » 5.x-dev
Status: Active » Closed (duplicate)
kenorb’s picture

I've got similar problem described here:
#506112: wrong line wrapping on drupal_wrap_mail() in mail.inc
but for 6.x