Bug 120979 - File statistics: "Lines of Text" instead of "Lines" (see comment 8)
Summary: File statistics: "Lines of Text" instead of "Lines" (see comment 8)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyBeginner, easyHack, skillDesign
Depends on:
Blocks: File-Properties
  Show dependency treegraph
 
Reported: 2018-10-28 05:58 UTC by Dieter
Modified: 2025-03-24 08:43 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
example with line numbering (24.89 KB, application/vnd.oasis.opendocument.text)
2018-10-28 05:58 UTC, Dieter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dieter 2018-10-28 05:58:13 UTC
Created attachment 146086 [details]
example with line numbering

Steps to reproduce

1. Open attached document; lin numbering is enabled (78 lines)
2. Files => Properties => statistics
3. Number of lines: ... => update => lines: 68 (what is wrong)

Expected result: correct number of lines (78) and that numer should be also displayed without an update (like all other statistics)

Found in

Version: 6.0.6.2 (x64)
Build-ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc: group

and

Version: 6.2.0.0.alpha1+ (x64)
Build ID: 8274c4c62df5b937b3f0bec9e1eeca85f3b219d4
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-10-22_01:47:50
Locale: en-US (de_DE); Calc: CL
Comment 1 Oliver Brinzing 2018-10-28 09:06:53 UTC
(In reply to Dieter Praas from comment #0)
> Expected result: correct number of lines (78) and that numer should be also
> displayed without an update (like all other statistics)

already reproducible with AOO 4.1.5
Comment 2 QA Administrators 2019-10-29 03:29:38 UTC Comment hidden (obsolete)
Comment 3 Dieter 2019-10-29 07:11:59 UTC
Still present in

Version: 6.4.0.0.alpha1 (x64)
Build ID: cc57df8f942f239d29cb575ea5a7cb01405db787
CPU threads: 4; OS: Windows 10.0 Build 18362; UI render: GL; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-US
Calc: threaded

It seems, that LO doens't count empty paragraphs in statistic. If thisist the case, there should be 
a) Rename "Lines" in "Lines with Text"
b) Adjust informations in LO Help [1]


[1] https://help.libreoffice.org/6.4/en-US/text/shared/01/01100400.html?System=WIN&DbPAR=WRITER&HID=modules/swriter/ui/statisticsinfopage/StatisticsInfoPage#bm_id3147294
Comment 4 Dieter 2021-09-06 19:02:03 UTC
Still present in

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 74d35e143d557a7e65c4443f5b80cb9d406b1fa1
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 5 Stéphane Guillou (stragu) 2023-01-03 10:25:20 UTC
Repro in recent master build:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ef3b7b7118c854d8ca67cc2249b6c08ddc1885eb
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 6 QA Administrators 2025-01-03 03:11:00 UTC Comment hidden (obsolete)
Comment 7 Dieter 2025-03-20 09:45:16 UTC
Still the same in

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6e8a094a1a1d63ed2684900c5e0c4292f8d833a8
CPU threads: 12; OS: Windows 11 X86_64 (build 22631); UI render: default; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded

(In reply to Dieter from comment #3)> 
> It seems, that LO doens't count empty paragraphs in statistic. If thisist
> the case, there should be 
> a) Rename "Lines" in "Lines with Text"
> b) Adjust informations in LO Help [1]
> 
> [1]
> https://help.libreoffice.org/6.4/en-US/text/shared/01/01100400.
> html?System=WIN&DbPAR=WRITER&HID=modules/swriter/ui/statisticsinfopage/
> StatisticsInfoPage#bm_id3147294

Heiko, what do you think?
Comment 8 Heiko Tietze 2025-03-20 10:31:06 UTC
I agree with "Lines with Text" or rather "Lines of Text" [1]. Alternatives are "Lines (excluding blank):" or "Text lines:"

But using empty paragraphs for layouting a document is not recommended and we should not just ignore it in the statistics for paragraphs.

We could add one entry for empty paragraphs like "Paragraphs: 68 \n Empty Paragraphs: 10" or add it to the label "Paragraphs: 68 (+10 empty)". Or specify it more clearly "Paragraphs (excluding empty):".

[1] https://en.wikipedia.org/wiki/Line_(text_file)
Comment 9 Dieter 2025-03-22 14:55:54 UTC
(In reply to Heiko Tietze from comment #8)
> I agree with "Lines with Text" or rather "Lines of Text" [1].
"Lines of Text" sounds good

> We could add one entry for empty paragraphs like "Paragraphs: 68 \n Empty
> Paragraphs: 10" or add it to the label "Paragraphs: 68 (+10 empty)". Or
> specify it more clearly "Paragraphs (excluding empty):".
I think you mix paragraphs and lines. For me it's Ok, if we only change "Lines" in "Lines of text", so that statistics shows correct value. If this isn't sufficient information, somebody will ask for enhancement.
Comment 10 Heiko Tietze 2025-03-24 08:43:33 UTC
The string needs to be changed in sw/uiconfig/swriter/ui/statisticsinfopage.ui