aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-15 19:15:55 -0800
committerfriendica <info@friendica.com>2015-02-15 19:15:55 -0800
commita5f7df46675e94471cd4128504eb17d8e5a0e9b1 (patch)
treef454ccb5b340f6861b9f8fec43c7aa9ad8b51889 /include/bbcode.php
parent9067d4c15729debea75ffea6931dd97c0f683fb5 (diff)
downloadvolse-hubzilla-a5f7df46675e94471cd4128504eb17d8e5a0e9b1.tar.gz
volse-hubzilla-a5f7df46675e94471cd4128504eb17d8e5a0e9b1.tar.bz2
volse-hubzilla-a5f7df46675e94471cd4128504eb17d8e5a0e9b1.zip
issue #860, replace br html element with linefeed between table rows
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 8f2b5bd38..749bc2334 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -625,6 +625,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
$Text = preg_replace("/\[table border=1\](.*?)\[\/table\]/sm", '<table border="1" >$1</table>' ,$Text);
$Text = preg_replace("/\[table border=0\](.*?)\[\/table\]/sm", '<table border="0" >$1</table>' ,$Text);
}
+ $Text = str_replace('</tr><br /><tr>',"</tr>\n<tr>",$Text);
$Text = str_replace('[hr]','<hr />', $Text);
// This is actually executed in prepare_body()