mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Fixed quote style
This commit is contained in:
parent
8c923ca2ea
commit
75b86d8183
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue