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

            Bug ID: 101948
           Summary: Search fails to find specified indentation in imported
                    Word document
           Product: LibreOffice
           Version: 5.0.5.2 release
          Hardware: x86 (IA32)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: davidjudysm...@gmail.com

Created attachment 127181
  --> https://bugs.documentfoundation.org/attachment.cgi?id=127181&action=edit
Word document with various indented lines; described in text.

In a .docx document stored by Word and imported into Writer, I tried to search
for lines with a specified indentation (0.5", for instance).  The lines were
not found, even though the indentation format of the lines matched the search
criteria.  Changing the indent within Writer and then changing it back, or
saving the file as rtf and then opening that, makes the search work correctly.

The attached document, Indent_tests.docx, was stored by Word Starter
v14.0.7172.5000.  It contains seven lines, each indicating its indentation.  To
duplicate the problem, open the document in Writer.
1. Place the cursor in the second line, and choose Paragraph from the
right-button menu or the Format menu.  Verify that the line has a Before-text
indent of 0.50".  Click OK to close the Paragraph box.
2. Place the cursor in the first line.  From the Edit menu, select Find &
Replace, or press Ctrl+H.
3. In the Search For box, enter "This" (without the quotes).  Click the plus
sign beside Other options, then click Format.  In the Before text box selector,
enter 0.50", or use the up-arrow to reach that number.  Click OK to close the
Format box, then verify that "Indent left 0,5 inch" appears below the Search
For box.
4. Click Find Next.  The notation "Search key not found" appears.
5. Try the other indentations in the Format box: Before text of 1.00" or First
line of 0.50".  In every case, the search key is not found.
6. Click Close in the Find & Replace box.
7. Using the indent pointers in the ruler, or the Paragraph Format box, change
the indent for one of the before-text lines, then change it back.  Verify with
the Paragraph Format box that the indent is back to what it was.
8. Go back into Search & Replace and specify the format of the line that you
adjusted.  That line will be found, but the other one with the same indent will
not.  Close the Find & Replace box.
9. Save the document as Rich Text (*.rtf).  Close the document, then open the
.rtf file.  Repeat the tests in steps 1-5.  All of the searches will succeed.


It appears that in an imported Word document, the Search cannot find a
specified indent, but once that indent has been set within Writer, or once the
file has been converted to rtf by Writer, the Search is fine.  Interestingly,
storing an rtf file from Word doesn't fix the problem.

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

Reply via email to