aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/utils
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-11-21 20:16:17 +0100
committerChristian Schneppe <christian@pix-art.de>2017-11-21 20:16:17 +0100
commit61235080d19516a52f1a1862d22257928e9722f0 (patch)
tree7140cc048be264957ca47d35845d269142183bed /src/main/java/de/pixart/messenger/utils
parenta2834e8eb6a8814db645a9d01f7bae8463668952 (diff)
styler: ignore closing keyword when preceded by whitespace
Diffstat (limited to 'src/main/java/de/pixart/messenger/utils')
-rw-r--r--src/main/java/de/pixart/messenger/utils/ImStyleParser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/ImStyleParser.java b/src/main/java/de/pixart/messenger/utils/ImStyleParser.java
index 5c41c95e2..1fc9452f2 100644
--- a/src/main/java/de/pixart/messenger/utils/ImStyleParser.java
+++ b/src/main/java/de/pixart/messenger/utils/ImStyleParser.java
@@ -85,7 +85,7 @@ public class ImStyleParser {
private static int seekEnd(CharSequence text, char needle, int start, int end) {
for (int i = start; i <= end; ++i) {
char c = text.charAt(i);
- if (c == needle) {
+ if (c == needle && !precededByWhiteSpace(text, i, start)) {
return i;
} else if (c == '\n') {
return -1;