Browse Source

bb2diaspora: added one more page break. In the future it could be replaced by a regular expression.

pull/1069/head
Michael Vogel 6 years ago
parent
commit
731d944ab5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/bb2diaspora.php

+ 1
- 1
include/bb2diaspora.php View File

@ -21,7 +21,7 @@ function diaspora2bb($s) {
$s = str_replace("\r","",$s);
// <br/> is invalid. Replace it with the valid expression
$s = str_replace(array("<br/>", "</p>", "<p>"),array("<br />", "<br />", "<br />"),$s);
$s = str_replace(array("<br/>", "</p>", "<p>", '<p dir="ltr">'),array("<br />", "<br />", "<br />", "<br />"),$s);
$s = preg_replace('/\@\{(.+?)\; (.+?)\@(.+?)\}/','@[url=https://$3/u/$2]$1[/url]',$s);


Loading…
Cancel
Save