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

html content contains multiple tags, and the text is displayed in the wrong order when dir="rtl" is specified #978

Open
LuoHpeng opened this issue Aug 16, 2024 · 0 comments

Comments

@LuoHpeng
Copy link

<html lang="zh-CN" dir="rtl">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>rtl test</title>
  </head>
  <body style="direction: rtl;">
    <div class="content"><p id="diy001" class="paragraph y9-chapter" style="display:block"><span>diy001</span></p><p class="paragraph" ><span class=" ">one</span><strong class=" y9-bold " style="color: rgba(80, 227, 194, 1);">tow</strong><span class=" ">three</span></p><p class="paragraph"><span class=" ">a</span><span class=" " style="color: rgba(208, 1, 28, 1);"> b</span><span class=" ">c ,d</span></p></div>
  </body>
</html>

html displays the text order
image

Output pdf text content
image

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

1 participant