mirror of https://github.com/M66B/FairEmail.git
Suppress bullet/none in plain text
This commit is contained in:
parent
31a3d87dc6
commit
9da5692d55
|
@ -67,6 +67,10 @@ public class BulletSpanEx extends BulletSpan {
|
||||||
this.level = level;
|
this.level = level;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String getLType() {
|
||||||
|
return this.ltype;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getLeadingMargin(boolean first) {
|
public int getLeadingMargin(boolean first) {
|
||||||
// https://issuetracker.google.com/issues/36956124
|
// https://issuetracker.google.com/issues/36956124
|
||||||
|
|
|
@ -2164,15 +2164,19 @@ public class HtmlHelper {
|
||||||
ssb.insert(start, ns.getIndex() + ". ");
|
ssb.insert(start, ns.getIndex() + ". ");
|
||||||
int level = ns.getLevel();
|
int level = ns.getLevel();
|
||||||
for (int l = 1; l <= level; l++)
|
for (int l = 1; l <= level; l++)
|
||||||
ssb.insert(start, "\t");
|
ssb.insert(start, " ");
|
||||||
} else {
|
} else {
|
||||||
ssb.insert(start, "* ");
|
|
||||||
if (span instanceof BulletSpanEx) {
|
if (span instanceof BulletSpanEx) {
|
||||||
BulletSpanEx bs = (BulletSpanEx) span;
|
BulletSpanEx bs = (BulletSpanEx) span;
|
||||||
|
|
||||||
|
if (!"none".equals(bs.getLType()))
|
||||||
|
ssb.insert(start, "* ");
|
||||||
|
|
||||||
int level = bs.getLevel();
|
int level = bs.getLevel();
|
||||||
for (int l = 1; l <= level; l++)
|
for (int l = 1; l <= level; l++)
|
||||||
ssb.insert(start, "\t");
|
ssb.insert(start, " ");
|
||||||
}
|
} else
|
||||||
|
ssb.insert(start, "* ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue