Bug 134986 - FILESAVE RTF: Number should restart but is counting along
Summary: FILESAVE RTF: Number should restart but is counting along
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:rtf
Depends on:
Blocks: RTF-Bullet-Number-Lists
  Show dependency treegraph
 
Reported: 2020-07-20 14:21 UTC by Telesto
Modified: 2024-09-14 16:36 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (15.25 KB, application/vnd.oasis.opendocument.text)
2020-07-20 14:21 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-07-20 14:21:22 UTC
Description:
FILESAVE RTF: Number should restart but is counting along

Steps to Reproduce:
1. Open the attached file
2. Save as RTF
3. File reload

Actual Results:
Should count 1-12 and restart

Expected Results:
Is counting up


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 52820b52b3bca45e2db527d1cc5f4488b2e0b9d0
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

not working at all prior to 6.4
Comment 1 Telesto 2020-07-20 14:21:42 UTC
Created attachment 163324 [details]
Example file
Comment 2 Terrence Enger 2020-07-28 15:46:38 UTC
I fail to reproduce the problem in commit 7b443b2c, built and running
on debian-buster.

I saved the .pdf by File > "Export As" > "Export as PDF..."; on dialog
"PDF Options" is accepted all defult values.
Comment 3 Telesto 2020-07-28 15:48:09 UTC
(In reply to Terrence Enger from comment #2)
> I fail to reproduce the problem in commit 7b443b2c, built and running
> on debian-buster.
> 
> I saved the .pdf by File > "Export As" > "Export as PDF..."; on dialog
> "PDF Options" is accepted all defult values.

PDF?
Comment 4 Terrence Enger 2020-07-28 18:08:08 UTC
(In reply to Telesto from comment #3)
> PDF?

Comment 2 is ... well, um ... would you believe that my cat wrote it?

I see this problem in commit 7b443b2c (2020-07-22), built and running
on debian-buster.  I am setting status NEW.
Comment 5 QA Administrators 2022-08-03 03:31:16 UTC Comment hidden (obsolete)
Comment 6 Terrence Enger 2022-11-08 20:04:06 UTC
I still see the problem in bibisect repository linux-64-7.5, s-h
cfc8a8f5 running on debian-buster.
Comment 7 Buovjaga 2024-09-14 16:36:45 UTC
If I understand correctly, this could be implemented (spec version 1.6):
https://latex2rtf.sourceforge.net/rtfspec_6.html

"List override level

Each list override level contains flags to specify whether the formatting or start-at values are being overridden for each level. If the format flag (listoverrideformat) is given, the lfolevel should also contain a list level (listlevel). If the start-at flag (listoverridestartat) is given, a start-at value must be provided. If the start-at is overridden but the format is not, then a levelstartat should be provided in the lfolevel itself. If both start-at and format are overridden, put the levelstartat inside the listlevel contained in the lfolevel."

In the 1.5 spec I saw the flag was called listoverridestart.

It seems the flags are handled, but nothing is done with them:

$ git grep -ni listoverridestart
include/svtools/rtfkeywd.hxx:896:#define OOO_STRING_SVTOOLS_RTF_LISTOVERRIDESTART "\\listoverridestart"
include/svtools/rtftoken.h:1198:    RTF_LISTOVERRIDESTART,
svtools/source/svrtf/rtfkeywd.cxx:906:{std::u16string_view(u"" OOO_STRING_SVTOOLS_RTF_LISTOVERRIDESTART),        RTF_LISTOVERRIDESTART},
sw/source/writerfilter/rtftok/rtfcontrolwords.hxx:902:    LISTOVERRIDESTARTAT,
sw/source/writerfilter/rtftok/rtftokenizer.cxx:793:    { "listoverridestartat"_ostr, { RTFControlType::FLAG, RTFKeyword::LISTOVERRIDESTARTAT } },

.rtf files snipped from results.

I'm marking as enhancement to distinguish this better.