Created attachment 156745 [details] sample file Steps to reproduce: 1. Open attached document 2. Save it as .RTF 3. Open the new created document in MSO ( I used MSO 2010 ) -> New Delhi and Railway Station are duplicated Reproduced in Version: 6.5.0.0.alpha0+ Build ID: dee81fb2e1df5091702b3c8b0e4a3f2b58e89291 CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US Calc: threaded [Bug found by office-interoperability-tools]
Regression introduced in range https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=e511a0ca5dde6d731bb126bbfe21768867890102..d9030ad6298e2f49ee63489d6158ea6ad23c0111 Adding Cc: to Michael Stahl
Created attachment 156747 [details] Another file affected
attachment 129098 [details] from bug 104239 is also affected
Created attachment 156748 [details] another one
Michael Stahl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/05d833a26208404e5f2b3d61298a57c9bcc7c1fe tdf#129574 sw: fix RTF export of table of contents It will be available in 6.5.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.
the regression is apparently that instead of no TOC field, we now write a TOC field in the wrong place... not sure if that is really a regression... but it should be fixed on master, although perhaps not in the most elegant way.
Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-6-4": https://git.libreoffice.org/core/commit/23ae7824ccd2df8fad6ee42ba66d2bc9a50843ff tdf#129574 sw: fix RTF export of table of contents It will be available in 6.4.1. 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.
Issue verified in Version: 6.5.0.0.alpha0+ Build ID: cc36c115004cb75037b0e4fdadff09035f765cd5 CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3; Locale: en-US (en_US.UTF-8); UI-Language: en-US Calc: threaded @Michael, thanks for fixing this issue!!
Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-6-4-0": https://git.libreoffice.org/core/commit/6ff3af1d6f59251c0e6d67e3d3d9495a1a182ab5 tdf#129574 sw: fix RTF export of table of contents It will be available in 6.4.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.