Commit 3a1671ae authored by Thomas's avatar Thomas
Browse files

Respect blank spaces between words

parent b428cf4d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -185,6 +185,8 @@ public class SpannableHelper {
                    urlDetails.put(url, urlText);
                }
            }
            text = text.trim().replaceAll("\\s{3}", "   ");
            text = text.trim().replaceAll("\\s{2}", "  ");
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
                initialContent = new SpannableString(Html.fromHtml(text, Html.FROM_HTML_MODE_LEGACY));
            else
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ Added:

Changed:
- Display translate button only when language is different
- Respect blank spaces between words in messages

Fixed:
- Behavior with cw toggle