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

Korrawit Pruegsanusak <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|[email protected] |detective.conan.1412@gmail.
                   |desktop.org                 |com

--- Comment #5 from Korrawit Pruegsanusak <[email protected]> ---
I started to look into this, but if I couldn't complete it before Monday
(UTC+7), I'll re-assign back to the list.

The problem is, libo create an extra closing element </w:hyperlink> that isn't
balanced (ie, no open tag). When creating file in Word 2007, it doesn't have
this element.

The code mapped to this element is XML_hyperlink, which is found only in
sw/source/filter/ww8/docxattributeoutput.cxx for 3 places; and the only place
invoked in this case is in function DocxAttributeOutput::EndRun() line 536-540

 if ( m_closeHyperlinkInPreviousRun )
     {
         m_pSerializer->endElementNS( XML_w, XML_hyperlink );
         m_closeHyperlinkInPreviousRun = false;
     }

So we create an imbalance end tag only.

Next, m_closeHyperlinkInPreviousRun is true in the third time it is invoked
(first and second times are false)

-- 
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