Issue 72680 - Bullets and numbering not RTL when saving RTL document as HTML
Summary: Bullets and numbering not RTL when saving RTL document as HTML
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 2.0.4
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: Arabic, needmoreinfo
Depends on:
Blocks:
 
Reported: 2006-12-17 18:11 UTC by mayz
Modified: 2013-08-07 14:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Works with htis document on WinXP (6.95 KB, application/vnd.oasis.opendocument.text)
2006-12-19 09:02 UTC, michael.ruess
no flags Details
This is how it looks in OOo (102.60 KB, image/png)
2006-12-22 07:53 UTC, mayz
no flags Details
This is the file (7.93 KB, application/vnd.oasis.opendocument.text)
2006-12-22 07:55 UTC, mayz
no flags Details
This is the HTML file (928 bytes, text/html)
2006-12-22 07:58 UTC, mayz
no flags Details
This is how it looks in the browser (32.10 KB, image/png)
2006-12-22 08:09 UTC, mayz
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mayz 2006-12-17 18:11:33 UTC
When creating a document, selecting CTL and setting the text direction of the
document to RTL, write some text with bullets and/or numbering, save as HTML,
the direction in the genereated HTML is set only to the <P> element to RTL and
not to the <UL> or <LI> or <BODY>, this causes the bullets/numbering to be on
the far left and the text on the far right, thus what you see in the oow is
different from what you see in the webbrowser.
Comment 1 michael.ruess 2006-12-19 09:02:50 UTC
Created attachment 41545 [details]
Works with htis document on WinXP
Comment 2 michael.ruess 2006-12-19 09:18:13 UTC
MRU->ES: cannot reproduce this on Win, could you please have a look on Linux?
Thanks!
Comment 3 mayz 2006-12-19 13:30:26 UTC
Dont set language to hebrew, just try to write hebrew with CTL enabled without
selecting languge, but setting the direction to RTL, or if you wish, try to set
the text direction in the attachment you sent to LTR and keep language hebrew,
how would it look like when saved as HTML, it will look RTL although you wanted
it LTR!!
Comment 4 eric.savary 2006-12-20 07:33:11 UTC
I cannot reproduce it.

Do you mean that after HTML export:

"This text here" 1.

looks like:

1. "This text here"

?
Comment 5 mayz 2006-12-22 07:53:39 UTC
Created attachment 41641 [details]
This is how it looks in OOo
Comment 6 mayz 2006-12-22 07:55:14 UTC
Created attachment 41642 [details]
This is the file
Comment 7 mayz 2006-12-22 07:58:53 UTC
Created attachment 41643 [details]
This is the HTML file
Comment 8 mayz 2006-12-22 08:09:24 UTC
Created attachment 41644 [details]
This is how it looks in the browser
Comment 9 mayz 2006-12-22 08:15:19 UTC
ive attached the document and a screen shot of it and the html export and a
screen shot of it, all under linux, i dont know how the html looks like in ie
under windows.

the html tag looks like this:
<UL>
	<LI><P DIR="RTL" ALIGN=RIGHT STYLE="margin-bottom: 0in">bullet</P>
	<LI><P DIR="RTL" ALIGN=RIGHT STYLE="margin-bottom: 0in">another one</P>

and i believe it should look like this:
<UL DIR="RTL">
	<LI DIR="RTL"><P DIR="RTL" ALIGN=RIGHT STYLE="margin-bottom: 0in">bullet</P>
	<LI DIR="RTL"><P DIR="RTL" ALIGN=RIGHT STYLE="margin-bottom: 0in">another one</P>
Comment 10 eric.savary 2007-01-18 10:38:26 UTC
->AMA:

setting <li><p  DIR="RTL">...</p> does not include the <li>

The whole <ul> block should be formatted like this:

<ul   DIR="RTL">
    <li><p  DIR="RTL">...</p>
    <li><p  DIR="RTL">...</p>
...    
    <li><p  DIR="RTL">...</p>
</ul>