From bf07196707f10024845e09faa7f2f15e810ffef3 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 13 Apr 2017 17:29:11 +0200 Subject: [PATCH] don't count >number% as quote --- src/main/java/eu/siacs/conversations/utils/UIHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/utils/UIHelper.java b/src/main/java/eu/siacs/conversations/utils/UIHelper.java index 44abf0751..658fdc1e5 100644 --- a/src/main/java/eu/siacs/conversations/utils/UIHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/UIHelper.java @@ -244,7 +244,7 @@ public class UIHelper { } else if (previousWasNumber && (c == '.' || c == ',')) { previousWasNumber = false; } else { - return Character.isWhitespace(c) && previousWasNumber; + return (Character.isWhitespace(c) || c == '%' || c == '+') && previousWasNumber; } } return previousWasNumber;