Browse code

news.php: use format_story function instead of nl2br due to the fact that it will use both the <p> tag AND the newlines/<br> tag, essentially triple-spacing each paragraph, which is not intended - admin/news.php does not have the issue

Clarissa Walker authored on 2026/11/16 10:36:28
Showing 1 changed files
... ...
@@ -147,7 +147,7 @@ else {
147 147
 		
148 148
 		//assign values
149 149
 		$news->assign("newstitle"   , $stories['title']);
150
-		$news->assign("newsstory"   , nl2br($stories['story']) );
150
+		$news->assign("newsstory"   , format_story($stories['story']) );
151 151
 		$news->assign("newsauthor", $stories['author']);
152 152
 		$news->assign("newsdate", date("$dateformat $timeformat", $stories['date']) );
153 153
 		$news->assign("newsid", $stories['nid']);