Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bullets are not left aligned if the consume more than one line of text #200

Open
tobiaselindberg opened this issue Jan 15, 2016 · 3 comments

Comments

@tobiaselindberg
Copy link

See screenshot below. If you have written a bullet list where a bullet consumes more than one line of text all lines that belongs to that bullet does not get left aligned except for the first line.

screenshot_2016-01-15-11-51-39

@tadfisher
Copy link

This is likely a BulletSpan issue. They don't play nicely with lineSpacingExtra or lineSpacingMultiplier.

@c-b-h
Copy link

c-b-h commented May 11, 2016

BulletSpan isn't used by bypass. The bullet is actually being added in a very ugly way:

            case LIST_ITEM:
                builder.append(" ");
                if (mOrderedListNumber.containsKey(element.getParent())) {
                    int number = mOrderedListNumber.get(element.getParent());
                    builder.append(Integer.toString(number) + ".");
                    mOrderedListNumber.put(element.getParent(), number + 1);
                }
                else {
                    builder.append(mOptions.mUnorderedListItem);
                }
                builder.append("  ");

An mOptions.mUnorderedListItem (defaults to •) is actually added as part of the item text which is not the same thing as what BulletSpan does. LeadingMarginSpan.Standard is used to add leading margin in bypass.

@joneswe
Copy link

joneswe commented Jan 11, 2017

Are there any solutions or workarounds for that issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants