mirror of
https://github.com/friendica/friendica
synced 2025-04-19 06:30:10 +00:00
fix double lines
This commit is contained in:
parent
64fc1318c6
commit
ced0a208d8
3 changed files with 120 additions and 80 deletions
|
@ -93,8 +93,12 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
|
|||
|
||||
// Convert new line chars to html <br /> tags
|
||||
|
||||
// nlbr seems to be hopelessly messed up
|
||||
// $Text = nl2br($Text);
|
||||
|
||||
// $Text = nl2br($Text);
|
||||
// We'll emulate it.
|
||||
|
||||
$Text = str_replace("\r\n","\n", $Text);
|
||||
$Text = str_replace(array("\r","\n"), array('<br />','<br />'), $Text);
|
||||
|
||||
if($preserve_nl)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue