From 2d430bd01137d47cebc9ea7a6c2d4c5a1641e054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Tue, 17 Jul 2012 10:02:36 +0200 Subject: [PATCH] Fix hr (in addition to br) in comment --- book.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book.php b/book.php index ae49e4c..9e34104 100644 --- a/book.php +++ b/book.php @@ -146,7 +146,7 @@ class Book extends Base { } if (preg_match ("/<\/(div|p|a)>/", $this->comment)) { - return $addition . str_replace ("
", "
", $this->comment); + return $addition . preg_replace ("<(br|hr)>", "$1 /", $this->comment); } else {