You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Android: code block box in a right-to-left list item ignores the paragraph direction #1072
Inside a list item, a code block's box starts at the item's text column: CodeBlockSpan reserves the item's indent as part of its leading margin and draws its background from left + leadingIndent.
For a right-to-left code paragraph, Android puts the leading margin on the right, but the background still removes the indent from the left. The box runs under the list marker on the right and leaves an empty gap on the left.
Reproduction
- עברית
``` שורה ראשונה שורה שנייה```- הבא
The code lines need right-to-left text, because each paragraph's direction comes from its first strong character. Nesting the item, for example under a 1. item, widens the gap.
Expected
The box ends at the item's text column on the right and starts at the left edge, mirroring the left-to-right case.
Activity