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

--- Comment #7 from Rev. Bob <[email protected]> ---
(In reply to Michael Stahl from comment #5)
> you seriously care about what the HTML code produced by Writer looks like,
> as opposed to how the HTML document is rendered by Web browsers?

Absolutely. Bad code is bad code.

> and don't mind the many elements that it inserts that no application other
> than Writer can read?

When I save a copy of a Writer ODT file as HTML, this is by far the biggest
problem I have with the output. Most of the other issues I have with that
output pipeline amount to deleting the HTML > HEAD > STYLE element and tweaking
the BODY tag.

Incidentally, this behavior persists in LO Writer 4.4.0.3, and I suspect that
it's related to revision tracking. Steps to replicate:

1. Create a new Writer document. (If a template comes up, select everything,
apply the Text Body paragraph style, and delete everything.)
2. Type the following line as the document's only content:

Take a look at this bug.

3. Highlight everything and use Ctrl-M to clear direct formatting, just to
ensure a clean slate.
4. Select the word "this" and use Ctrl-I to italicize it.
5. Click in a random place to clear the selection, then replace the letters
"is" in "this" with "at" - "Take a look at _that_ bug."
6. File > Save a copy > HTML format.

Open the file, and you'll see the paragraph rendered thus:

<p class="western">Take a look at <i>th</i><i>at</i> bug.</p>

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to