From d5ac7e938bf5a8737a2afdcf69f095b13bb7e5af Mon Sep 17 00:00:00 2001
From: Friendika <info@friendika.com>
Date: Sun, 16 Jan 2011 23:48:44 -0800
Subject: [PATCH] newlines were getting stripped

---
 boot.php                | 1 -
 include/html2bbcode.php | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/boot.php b/boot.php
index 2be34a5290..ac577887ca 100644
--- a/boot.php
+++ b/boot.php
@@ -910,7 +910,6 @@ function xmlify($str) {
 			case "'" :
 				$buffer .= '&apos;';
 				break;
-
 			case "\"" :
 				$buffer .= '&quot;';
 				break;
diff --git a/include/html2bbcode.php b/include/html2bbcode.php
index 688c014526..7cacadd65c 100644
--- a/include/html2bbcode.php
+++ b/include/html2bbcode.php
@@ -32,7 +32,7 @@ function html2bbcode($s) {
 	// Replace with
 
 	$bbtags = array(
-		'',
+		"\n",
 		'[b]$1[/b]',
 		'[i]$1[/i]',
 		'[u]$1[/u]',
-- 
2.39.5