To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=64723 Issue #:|64723 Summary:|HTML Import doesn't import formatting as expected Component:|Word processor Version:|OOo 2.0.2 Platform:|All URL:| OS/Version:|All Status:|UNCONFIRMED Status whiteboard:| Keywords:| Resolution:| Issue type:|ENHANCEMENT Priority:|P3 Subcomponent:|open-import Assigned to:|mru Reported by:|lsaffre
------- Additional comments from [EMAIL PROTECTED] Mon Apr 24 23:57:50 -0700 2006 ------- I wrote four HTML files that don't import correctly into OOo Writer. Most problems can be considered as bugs. I hope that this helps fixing these bugs. A simple way to reproduce the problem is to display each file in your browser, then press Ctrl-A, Ctrl-C to copy it to the clipboard, then press Ctrl-V to paste it into a newly created OOo Writer document. Another simple way is to insert it using Insert > File menu command. The rest of this message are the files' contents which you must first save as local files. file 1.HTM ============================================== <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"> <html><head> <title>A Simple Document</title> <style type="text/css"> body { font-family: "Helvetica"; } h1 { border: solid 1pt black; text-align: center; } p.Recipient { margin-left: 70mm; } </style></head><body> <h1>A Simple Document</h1> <h2>1. Using the <tt>style</tt> attribute</h2> <p style="margin-left: 70mm;"> This is the first paragraph. </p> <p style="margin-left: 70mm;"> This is the second paragraph. </p> <h2>2. Using the <tt>class</tt> attribute</h2> <p class="Recipient"> This is the first paragraph. </p> <p class="Recipient"> This is the second paragraph. </p> When importing this file into OpenOffice Writer I observe the following problems: <ol> <li>The title "A Simple Document" isn't displayed centered and surrounded by a rectangular frame. <li>The body doesn't use a non-serifed font ("Helvetica", "Arial",...). <li>The two paragraphs in section "2. Using the <tt>class</tt> attribute" are not indented like the paragraphs of the first section. <li>Writer neither creates a paragraph style "Recipient" nor (if it existed before) attributes it to the paragraphs of the second section. <li>The document's <tt>title</tt> variable remains empty. (This is actually not a problem because this would be magical behaviour, which would lead to conflict when inserting more than one html file, or when the title already contains a value. But for my purposes it would be very useful.) </ol> </body></html> file 2.HTM ============================================== <html><body> <p style="margin-left: 70mm;"> This is the first paragraph. </p> <p style="margin-left: 70mm;"> This is the second paragraph. </p> When importing this file into OpenOffice Writer I observe the following problems: <ol> <li>The first paragraph isn't indented by 70 mm. </ol> </body></html> file 3.HTM ============================================== <html><body> <br> <p style="margin-left: 70mm;"> This is the first paragraph. Now it is correctly indented because there is a <tt><br></tt> before it. </p> <p style="margin-left: 70mm;"> This is the second paragraph. </p> </body></html> file 4.HTM ============================================== <html><body> <p>First line<br>with a <tt><br></tt> break.</p> <p>Second line<br/>with a <tt><br/></tt> break.</p> When importing this file into OpenOffice Writer I observe the following problems: <ol> <li>"<br>" works, but "<br/>" doesn't. The linebreak in the second line is not recognized. </ol> </body></html> --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]