mirror of
https://github.com/friendica/friendica
synced 2025-04-25 16:30:10 +00:00
Bugfix: multiple linefeeds were generated when items where written in the editor. The existing fix didn't really work
This commit is contained in:
parent
72f430ae58
commit
8d7d46ae7a
3 changed files with 29 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue