Bug 129494 - FIND&REPLACE: Empty paragraphs are found, but not shown when searching for paragraph styles in Find & Replace
Summary: FIND&REPLACE: Empty paragraphs are found, but not shown when searching for pa...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.3.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Find&Replace-Styles
  Show dependency treegraph
 
Reported: 2019-12-19 11:33 UTC by sdc.blanco
Modified: 2019-12-21 12:37 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sdc.blanco 2019-12-19 11:33:43 UTC
To illustrate that "find & replace does not indicate blank lines with paragraph style"

Procedure:

1.  Make a document with the following 4 lines using paragraph styles shown in []:

abcd  [Default Style]
(only CR here)  [Default Style]
(only CR here)  [Numbering 1]
a  [Default Style]

2.  Place cursor on first line, then Find & Replace, check Paragraph Styles, and select ‟Numbering 1” in the Find box.   

3.  Click on ‟Find Next”

Actual Result:   Finds CR, but no cursor is shown
Expected Result:   Cursor is shown on Numbering 1 paragraph

4.   Place cursor on first line, then Find & Replace, check Paragraph Styles, and select ‟Default Style” in the Find box.

5.  Click on ‟Find Next” (multiple times)

Actual Result:  Finds each paragraph with Default Style (but shows nothing for the blank line with Default Style)

Expected Result:  Would also show some indicator (e.g., blinking cursor or a stable cursor) for the blank line with default style.

Additional information.

1. Use case:  This ‟toy example” only illustrates the problem.  But consider having a 30 page document, and wanting to search on a particular style (in part to ‟clean up” stray blank lines that have paragraphs styles that you want to remove or change.)  It is hard and confusing to get ‟hits” but not be able to see where on the page the actual paragraph style is located. Also, some pages may have several blank lines (i.e., only CR), and these may have different styles, so it will be unclear which of the these lines is the one that was found in find&replace.

2. Of course nothing depends on "Numbering 1", which is just used for illustration.  In an actual document, there may be many blank lines, having different styles.

Tested with:

Version: 6.3.3.2 (x64)
Build ID: a64200df03143b798afd1ec74a12ab50359878ed
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: da-DK (en_DK); UI-Language: en-US
Calc: threaded

and 

Version: 6.4.0.0.beta1 (x64)
Build ID: 4d7e5b0c40ed843384704eca3ce21981d4e98920
CPU threads: 8; OS: Windows 10.0 Build 18362; UI render: GL; VCL: win; 
Locale: en-US (en_DK); UI-Language: en-US
Calc: CL
Comment 1 Dieter 2019-12-19 11:50:19 UTC
I confirm it with

Version: 6.5.0.0.alpha0+ (x64)
Build ID: e26d89371f0e4f41476c9a99be01d98dedb76776
CPU threads: 4; OS: Windows 10.0 Build 18362; UI render: default; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-GB
Calc: threaded
Comment 2 sdc.blanco 2019-12-21 12:37:32 UTC
Additional Information:

In the Find Toolbar, with Navigate By, and Search for Headings, a blinking cursor is shown with found blank lines that have a Heading Style. 

But if these same headings are searched for with Find&Replace, they are found, but no indication is given (e.g., no blinking cursor) (as per original bug report)


Tested with: 6.3.3.2 and 6.4.0.0.beta1