From 295d8e97c19e3f3712347f30fb28a198b7d6d2bd Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Thu, 2 Sep 2021 05:55:43 +0200 Subject: [PATCH] I am a fucking idio. Anyway, it's fixed now. --- threadr/board/board.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/threadr/board/board.php b/threadr/board/board.php index 1c5290e..1b1d82f 100644 --- a/threadr/board/board.php +++ b/threadr/board/board.php @@ -15,7 +15,7 @@ foreach($statement->fetchAll() as $ROW) { // add line breaks to post content, to be replaced with proper makrdown support in the future (see #44) $newlines = array("\r\n", "\n\r", "\r", "\n"); // two-character newlines first to prevent placing two line breaks instead of one - str_replace("\n", "
", $post_content); + $post_content = str_replace($newlines, "
", $post_content); echo "

$post_title