Browse Source

Add <br> for each carriage return

Fixes #2993
pull/2990/head
Hypolite Petovan 4 years ago
parent
commit
60b9203dd5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      include/bb2diaspora.php

+ 2
- 2
include/bb2diaspora.php View File

@ -17,8 +17,8 @@ function diaspora2bb($s) {
$s = html_entity_decode($s, ENT_COMPAT, 'UTF-8');
// Remove CR to avoid problems with following code
$s = str_replace("\r", '', $s);
// Handles single newlines
$s = str_replace("\r", '<br>', $s);
$s = str_replace("\n", " \n", $s);


Loading…
Cancel
Save