aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2015-12-02 13:22:56 +0300
committerGravatar Vitaly Takmazov2015-12-02 13:22:56 +0300
commit922a12eac92b6b6e0367482351328eb8d5133249 (patch)
tree81abc1f563d4bc10f3fa3bd08f532318601b2dc8 /src/main/java/com/juick
parent73b90d85cb564a3f465dc631c0739fdd473c83b2 (diff)
blockquote should not be inside p, using q instead
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/http/www/PageTemplates.java4
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))&gt; *(.*)?(\\n|(?=\\Z))", "<blockquote>$1</blockquote>");
- msg = msg.replaceAll("</blockquote><blockquote>", "\n");
+ msg = msg.replaceAll("(?:(?<=\\n)|(?<=\\A))&gt; *(.*)?(\\n|(?=\\Z))", "<q>$1</q>");
+ msg = msg.replaceAll("</q><q>", "\n");
msg = msg.replaceAll("\n", "<br/>\n");
return msg;