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

            Bug ID: 153130
           Summary: Copying text and placing it in search - search fails
                    to find that text
           Product: LibreOffice
           Version: 6.0 all versions
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: dcm-bugzi...@capital-ideas.com

Description:
Copying text from a file and placing it in search should ALWAYS then result in
a successful search, that finds the copied text. It does not in LibreOffice
Writer if the copied text includes a paragraph return mark, even if View is set
to show these marks. It is an insanely annoying bug because it is especially
things like line endings that are difficult to code for a search due to
inconsistent use across apps of how to show a paragraph mark - depending on the
app it might be $, \r, ^p or something else. 

Steps to Reproduce:
The use case here is, for a YouTube transcript, replace the paragraph mark
before the timecode with a space. In doing that, I encountered a general
problem with Find.

1.Write something with a few paragraph marks like this (copied from a YouTube
Transcript):
whenever I use these systems, I always  feel myself yearning for more artistic  
0:55
control. I want to specify the pose  for these characters. 

2. For clarity on the problem setup, in the above, there should be a paragraph
return before and after the 0:55. In LibreOffice Writer, enable View of
Formatting Marks. The text should show paragraph marks shown at the end of each
line (i.e. after 'artistic' and after '0:55'.) No other formatting marks appear
in the document. 

3. Select and then copy the following text in 1: artistic  
0:55
control

4. Open Edit - Find and Replace. Click Regular Expressions. Paste the copied
text in the Find box. Note it does not show the paragraph marks.

5. Press Find Next. Note that it will not find the phrase (search key not
found). 

6. Put $ in for the paragraph marks in the pasted text in the Find box (i.e.
after artistic and after 0:05, so we now have in the Find box:
artistic$0:55$control 
Press Find Next. Note that it will not find the phrase (search key not found). 

7. Put $[0-9] in the Find field. Press Find Next. Note that it will not find
the phrase (search key not found).



Actual Results:
See 4., 5., 6., and 7. above.

Expected Results:
4. I expected it to show the paragraph marks using the special search code for
paragraph marks, so I could hit Find Next and it would find the copied text in
the document, without me having to make any changes to the text pasted in the
Find box

5. I expected it to find the phrase in the document.

6. I expected there to be no need to manually add special codes to be able to
find the copied text. I also expected - in its current form where I need to add
special codes - that once I add the special code for paragraph mark ($), it
will find the copied text in the document. 

7. I expected it to find target (0:55) in the document.



Reproducible: Always


User Profile Reset: No

Additional Info:
See "expected Results". LibreOffice help was not helpful.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to