https://bugs.freedesktop.org/show_bug.cgi?id=76021

          Priority: medium
            Bug ID: 76021
          Assignee: libreoffice-bugs@lists.freedesktop.org
           Summary: FORMATTING: Libre Office Writer: save As HTML results
                    in interlaced <strike> and <span> tags
          Severity: normal
    Classification: Unclassified
                OS: Windows (All)
          Reporter: pgo...@mail.utexas.edu
          Hardware: Other
        Whiteboard: BSA
            Status: UNCONFIRMED
           Version: 4.2.1.1 release
         Component: Writer
           Product: LibreOffice

Created attachment 95585
  --> https://bugs.freedesktop.org/attachment.cgi?id=95585&action=edit
A Libre Office document which, when saved as HTML, produces interlaced <strike>
and <span> tags.

Problem description: 

I am saving *.docx files as html using Libre Office 4.2.1.1.  Much to my
surprise, I noticed that I'm getting horrifically invalid html, with interlaced
tags.  As an experiment, I copy&pasted some of the offending text into a Libre
Office document, saved as ODT, and then saved again as HTML.  The behavior
appears to be the same.  Here is an example of what I'm talking about under
current behavior.

Notice that the <strike> and <span> tags are interlaced, something which should
never happen and which makes the file impossible to parse, say using xslt.


Steps to reproduce:
1. See attached Libre Office document
2. Save as HTML
3. Check the resulting HTML document using a text editor

I will test this using the linux version of Libre Office Writer

Current behavior:

<p class="western" style="margin-bottom: 0in; line-height: 110%"><b>Advisor</  
b>&nbsp;shall
mean a person designated to support, assist, consult with<span style="display: 
inline-block; border: none; padding:
0in"><strike>&nbsp;</strike><strike>and</span></strike>,

Expected behavior:

There are various ways this might be formatted with HTML; it doesn't matter as
long as the tags aren't interlaced.        
Operating System: Windows XP
Version: 4.2.1.1 release

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

Reply via email to