Created attachment 176659 [details] Chapter Numbering The functions to generate (X)HTML have following problems/bugs: 1. numbering wrong in some cases 2. spacing between number and heading missing For detailed description please see attached .odt. (Didn't check tdf#99960 from 2016)
oops, missed another numbering bug in the attached document: File->Send->Create HTML Document generates one html file per chapter. They're linked in the first page. The number for the level 1 chapters there is correct. But in all sub-pages --one for each chapter-- numbering of level 1 is always 1, means for chapter 2, 3 and all others the numbering is 1, 1.1, 1.1.1, 1.2, etc. instead of 2, 2.1, 2.1.1, 2.2, ...
Bug about wrong numbering seems to be also reported in #tdf126716
Bug about spacing probably also reported in #tdf124526 (there for LO 7.2).
Spacing is also discussed in #tdf115326 . I.g. I agree wih that discussion: HTML collapses any and all whitespaces to one single space, and tabs are not supported in HTML (unless pre tag is used). As I described in my attached document, CSS can do the trick with min-length, but the challange for LO is to find the proper value for that min-length. Just a guess: if there're tabs used in LO, set the style used for them with min-length:4em (which is roughly 8 characters). Of course, if the defined tabstop is larger, an greater value must be used. Also use at least one space (either simple space   or ) in the span for the tab to ensure that there is always a space.
I confirm the different problems with Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community Build ID: deea3b7471c3dab0220eca6146c225a2d47681a2 CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL but as there is the basic rule "one problem one bug report" I recommend to reduce this bug report to one problem and open a new report for the second one. First problem: Wrong numbering Export as xhtml: Every chapter starts with chapter numbering 1 Save as html: O.K. Create Html-document: Numbering of chapter 3 is again chapter 1 => uses a differnet list? Second problem: Spacing after chapter numbering Export as xhtml: Smaller space in level 1 (tab stop) and no space in level 2 and level 3(blank space) Save as html: No space in all levels Create Html-document: No space in all levels
Do you expect that I report two new issues now, or will it be done internally?
(In reply to achim from comment #6) > Do you expect that I report two new issues now, or will it be done > internally? We should focus this report to the first problem (I changed bug summary). Please open a new report for the second problem. Thank you.
> Second problem: Spacing after chapter numbering is now in #tdf146365
Dear achim, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Quick test with 7.6.4.1 all bugs still exist. Numbering of chapters is partially fixed: level 1 ist correct, all others are wrong because level 1 is missing in number of sub-levels. Example (expected): A. Appendix A.1. appendix level 2 B. Beispiel Example (current output): A. Appendix 1. appendix level 2 B. Beispiel Cheers achim ---- Version: 7.6.4.1 (X86_64) / LibreOffice Community Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1 CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: gtk3 Locale: de-DE (de_DE.utf8); UI: en-US Calc: threaded