diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-11-21 20:16:17 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-11-21 20:16:17 +0100 |
commit | 61235080d19516a52f1a1862d22257928e9722f0 (patch) | |
tree | 7140cc048be264957ca47d35845d269142183bed /src/main/java | |
parent | a2834e8eb6a8814db645a9d01f7bae8463668952 (diff) |
styler: ignore closing keyword when preceded by whitespace
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/ImStyleParser.java | 2 |
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; |