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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from [email protected] ---
One additional (but possibly related) case where the positioning of bookmark
tags is incorrect appears to be when a bookmark spans two or more formatting
elements.

Steps to reproduce:
1) create a new Document in Writer
2) add "foo bar" (as a single paragraph)
3) highlight "foo" and make it bold. highlight "bar" and make it italic
4) select the whole line (i.e. "foo bar") and add bookmark. Name it "test"
7) save the file as DOCX (Microsoft Word 2007/2010 XML)
8) look at the generated word/document.xml (inside the docx file)

Observed result (pPr section omitted):
<w:p>
  <w:bookmarkStart w:id="0" w:name="test" />
  <w:r>
    <w:rPr>
      <w:b />
      <w:bCs />
    </w:rPr>
    <w:t>foo</w:t>
  </w:r>
  <w:r>
    <w:rPr></w:rPr>
    <w:t xml:space="preserve"> </w:t>
  </w:r>
  <w:bookmarkEnd w:id="0" />
  <w:r>
    <w:rPr>
      <w:i />
      <w:iCs />
    </w:rPr>
    <w:t>bar</w:t>
  </w:r>
</w:p>

Expected result:
<w:p>
  <w:bookmarkStart w:id="0" w:name="test" />
  <w:r>
    <w:rPr>
      <w:b />
      <w:bCs />
    </w:rPr>
    <w:t>foo</w:t>
  </w:r>
  <w:r>
    <w:rPr></w:rPr>
    <w:t xml:space="preserve"> </w:t>
  </w:r>
  <w:r>
    <w:rPr>
      <w:i />
      <w:iCs />
    </w:rPr>
    <w:t>bar</w:t>
  </w:r>
  <w:bookmarkEnd w:id="0" />
</w:p>

It seems that no matter how many <w:r> elements the bookmark is supposed to
encompass, it is always ended after the second one.

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