Suppress bullet/none in plain text

This commit is contained in:
M66B 2021-07-09 09:36:11 +02:00
parent 31a3d87dc6
commit 9da5692d55
2 changed files with 12 additions and 4 deletions

View File

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

View File

@ -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, "* ");
} }
} }