aboutsummaryrefslogtreecommitdiff
path: root/juick-core/src/main/java/com/juick/util
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-01-06 09:18:49 +0300
committerGravatar Vitaly Takmazov2018-01-06 09:18:49 +0300
commitfdb9d0e4569eab3a5b4ddf7f63f5e505249b8ac3 (patch)
treee10bb2bbfbad39db9a49a53bc021eae88e828a0f /juick-core/src/main/java/com/juick/util
parent0dc51d8768cba03ecff82a5c0dc8c7ece695af6b (diff)
email: cleanup html template
Diffstat (limited to 'juick-core/src/main/java/com/juick/util')
-rw-r--r--juick-core/src/main/java/com/juick/util/MessageUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-core/src/main/java/com/juick/util/MessageUtils.java b/juick-core/src/main/java/com/juick/util/MessageUtils.java
index 91cc7870..d032ce8e 100644
--- a/juick-core/src/main/java/com/juick/util/MessageUtils.java
+++ b/juick-core/src/main/java/com/juick/util/MessageUtils.java
@@ -146,11 +146,11 @@ public class MessageUtils {
public static String formatHtml(Message jmsg) {
StringBuilder sb = new StringBuilder();
boolean isReply = jmsg.getRid() > 0;
- String title = isReply ? "<h3>Reply by @" : "@";
- String subtitle = isReply ? "<q>" + jmsg.getReplyQuote() + "</q>" : "<i>" + jmsg.getTagsString() + "</i>";
+ String title = isReply ? "<b>Reply by @" : "<b>@";
+ String subtitle = isReply ? "<blockquote>" + jmsg.getReplyQuote() + "</blockquote>" : "<i>" + jmsg.getTagsString() + "</i>";
boolean isCode = jmsg.getTags().stream().anyMatch(t -> t.getName().equals("code"));
- sb.append(title).append(jmsg.getUser().getName()).append(":</h3></br/>")
+ sb.append(title).append(jmsg.getUser().getName()).append(":</b></br/>")
.append(subtitle).append("<br/>")
.append(isCode ? formatMessageCode(jmsg.getText()) : formatMessage(jmsg.getText())).append("<br />");
if (StringUtils.isNotEmpty(jmsg.getAttachmentType())) {