[Libreoffice-bugs] [Bug 131812] Exporting to html doesn't preserve RTL property

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Apr 9 06:53:51 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=131812

--- Comment #6 from Zayed <zayed.alsaidi at gmail.com> ---
(In reply to Julien Nabet from comment #3)
> If you check Page Style, Text direction is LTR, not RTL.
> The text is only right justified.
> 
> So yes html should be right justified, but nothing related to Text direction.

All the paragraphs are RTL direction in Writer and right justified. 
Currently the Body is like this:
<body dir="ltr" style="max-width:8.5in;margin-top:0.7874in;
margin-bottom:0.7874in; margin-left:0.7874in; margin-right:0.7874in; ">

and CSS for P is:
.P1 { font-size:12pt; font-family:Liberation Serif; writing-mode:rl-tb;
text-align:left ! important;}

The correct one should be with out dir="ltr" for the body, like this:
<body  style="max-width:8.5in;margin-top:0.7874in; margin-bottom:0.7874in;
margin-left:0.7874in; margin-right:0.7874in; ">

and for the P like this:
.P1 { font-size:12pt; font-family:Liberation Serif; writing-mode:rl-tb;
text-align:right ! important;}

I hope this clear by now.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200409/d8bab729/attachment.htm>


More information about the Libreoffice-bugs mailing list