Bugfix: multiple linefeeds were generated when items where written in the editor. The existing fix didn't really work

This commit is contained in:
Michael Vogel 2012-07-14 19:54:27 +02:00
parent 72f430ae58
commit 8d7d46ae7a
3 changed files with 29 additions and 0 deletions

View file

@ -369,6 +369,9 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
// oembed tag
$Text = oembed_bbcode2html($Text);
// Avoid triple linefeeds through oembed
$Text = str_replace("<br style='clear:left'></span><br /><br />", "<br style='clear:left'></span><br />", $Text);
// If we found an event earlier, strip out all the event code and replace with a reformatted version.
// Replace the event-start section with the entire formatted event. The other bbcode is stripped.
// Summary (e.g. title) is required, earlier revisions only required description (in addition to