diff options
author | Vitaly Takmazov | 2015-12-02 13:22:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2015-12-02 13:22:56 +0300 |
commit | 922a12eac92b6b6e0367482351328eb8d5133249 (patch) | |
tree | 81abc1f563d4bc10f3fa3bd08f532318601b2dc8 /src/main/java/com/juick/http/www | |
parent | 73b90d85cb564a3f465dc631c0739fdd473c83b2 (diff) |
blockquote should not be inside p, using q instead
Diffstat (limited to 'src/main/java/com/juick/http/www')
-rw-r--r-- | src/main/java/com/juick/http/www/PageTemplates.java | 4 |
1 files changed, 2 insertions, 2 deletions
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))", "<blockquote>$1</blockquote>"); - msg = msg.replaceAll("</blockquote><blockquote>", "\n"); + msg = msg.replaceAll("(?:(?<=\\n)|(?<=\\A))> *(.*)?(\\n|(?=\\Z))", "<q>$1</q>"); + msg = msg.replaceAll("</q><q>", "\n"); msg = msg.replaceAll("\n", "<br/>\n"); return msg; |