From 500bac8a74b0ec844ef3007ec3afd7467eba0ce7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 21 Jun 2011 11:01:14 +0200 Subject: [PATCH] Add ellipsis when cutting off a text. --- src/main/java/net/pterodactylus/sone/template/ParserFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/template/ParserFilter.java b/src/main/java/net/pterodactylus/sone/template/ParserFilter.java index 5f6fd3e..2a4d5b4 100644 --- a/src/main/java/net/pterodactylus/sone/template/ParserFilter.java +++ b/src/main/java/net/pterodactylus/sone/template/ParserFilter.java @@ -114,7 +114,7 @@ public class ParserFilter implements Filter { if (length >= longText.length()) { shortenedParts.add(part); } else { - shortenedParts.add(new PlainTextPart(longText.substring(0, length))); + shortenedParts.add(new PlainTextPart(longText.substring(0, length) + "…")); } length -= longText.length(); } else if (part instanceof LinkPart) { -- 2.7.4