Fix hr (in addition to br) in comment

This commit is contained in:
Sébastien Lucas 2012-07-17 10:02:36 +02:00
parent a70c44bdc1
commit 2d430bd011

View file

@ -146,7 +146,7 @@ class Book extends Base {
}
if (preg_match ("/<\/(div|p|a)>/", $this->comment))
{
return $addition . str_replace ("<br>", "<br />", $this->comment);
return $addition . preg_replace ("<(br|hr)>", "$1 /", $this->comment);
}
else
{