mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Fixed quote style
This commit is contained in:
@@ -2209,15 +2209,16 @@ public class HtmlHelper {
|
||||
}
|
||||
|
||||
static String getQuoteStyle(CharSequence quoted, int start, int end) {
|
||||
String dir = "left";
|
||||
try {
|
||||
int count = end - start;
|
||||
if (TextDirectionHeuristics.FIRSTSTRONG_LTR.isRtl(quoted, start, count))
|
||||
return "border-right:3px solid #ccc; padding-left:3px;";
|
||||
dir = "right";
|
||||
} catch (Throwable ex) {
|
||||
Log.e(new Throwable("getQuoteStyle " + start + "..." + end, ex));
|
||||
}
|
||||
|
||||
return "border-left:3px solid #ccc; padding-left:3px;";
|
||||
return "border-" + dir + ":3px solid #ccc; padding-" + dir + ":3px;margin-top:0; margin-bottom:0;";
|
||||
}
|
||||
|
||||
static boolean hasBorder(Element e) {
|
||||
|
||||
Reference in New Issue
Block a user