Fixed quote direction in composer

This commit is contained in:
M66B 2021-08-09 21:59:16 +02:00
parent 8ed1121c88
commit b5580ad2e9
1 changed files with 3 additions and 2 deletions

View File

@ -2070,10 +2070,11 @@ public class HtmlHelper {
static String getQuoteStyle(CharSequence quoted, int start, int end) {
try {
if (TextDirectionHeuristics.FIRSTSTRONG_LTR.isRtl(quoted, start, end))
int count = end - start;
if (TextDirectionHeuristics.FIRSTSTRONG_LTR.isRtl(quoted, start, count))
return "border-right:3px solid #ccc; padding-left:3px;";
} catch (Throwable ex) {
Log.e(new Throwable("getQuoteStyle", ex));
Log.e(new Throwable("getQuoteStyle " + start + "..." + end, ex));
}
return "border-left:3px solid #ccc; padding-left:3px;";