-
Notifications
You must be signed in to change notification settings - Fork 364
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
Numbered lists: numbers rendered after text in RTL languages #645
Comments
I can try to solve this issue with a little guidance: I tried to do it by simply calculating the width similar to what was done in #271. However this is not enough here: the order also needs to change. e.g. |
hi @johnnyaug , the "1. " is generated in the method The open point is: do we have the information that we are in a RTL context? :) |
ok, you can get the direction by calling: |
Technically, we should be doing BIDI on the list marker text. |
Related to #270 - which dealt with a similar issue with bulleted lists, and was solved.
Reproduce:
Take the following html:
And render it with the following code:
Get the following PDF:
The numbers are expected to be to the right of the text, like so:
The text was updated successfully, but these errors were encountered: