Respect blank spaces between words

This commit is contained in:
Thomas 2022-12-20 14:03:48 +01:00
parent b428cf4de9
commit 3a1671ae38
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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