This is split from bug 167526. Open attachment 201488 [details]. The line numbering there must count from 1 to 5 (as in Word); in Writer, it goes from 1 to 6. This bug does not focus on missing (not shown) number 2 for paragraph between the first and second tables. It is only about extra number 3 (not shown after commit 441aed20b95ee40dec1df72fb8e8167d0e48c0c4) between tables 2 and 3, which shifts numbering down, and making the paragraph under table 3 have unexpected number 4 (instead of correct 3).
https://gerrit.libreoffice.org/c/core/+/187982
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/14f4ea109d4cd8fe50fd419f51e3370c74169343 tdf#167535: Ignore dummy anchor nodes in line numbering It will be available in 26.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/88d907de9d42464136489bc66b46c7411652c5e0 Revert "tdf#167535: Ignore dummy anchor nodes in line numbering" It will be available in 26.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/64299360eac4ae1cb5eb511730c21db1d191190f tdf#167535: Ignore dummy anchor nodes in line numbering (take 2) It will be available in 26.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.