From 922a12eac92b6b6e0367482351328eb8d5133249 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 2 Dec 2015 13:22:56 +0300 Subject: blockquote should not be inside p, using q instead --- src/main/java/com/juick/http/www/PageTemplates.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com') diff --git a/src/main/java/com/juick/http/www/PageTemplates.java b/src/main/java/com/juick/http/www/PageTemplates.java index bb4a6e47..bc48d352 100644 --- a/src/main/java/com/juick/http/www/PageTemplates.java +++ b/src/main/java/com/juick/http/www/PageTemplates.java @@ -487,8 +487,8 @@ public class PageTemplates { msg = sb.toString(); // > citate - msg = msg.replaceAll("(?:(?<=\\n)|(?<=\\A))> *(.*)?(\\n|(?=\\Z))", "
$1
"); - msg = msg.replaceAll("
", "\n"); + msg = msg.replaceAll("(?:(?<=\\n)|(?<=\\A))> *(.*)?(\\n|(?=\\Z))", "$1"); + msg = msg.replaceAll("", "\n"); msg = msg.replaceAll("\n", "
\n"); return msg; -- cgit v1.2.3