1. Open attached document 2. Select all text 3. Paste to plain text editor Expected: Only the visible text is pasted Actual: The "Hidden Section" text is also pasted. Same behavior when saving file as txt. -> Add an option to allow excluding hidden sections from Text export / plain text paste. EasyHack: Code pointer: https://opengrok.libreoffice.org/xref/core/sw/source/filter/ascii/wrtasc.cxx?r=af23d1c1#94 Similiar commit adding a new option: 79b578b7f8b5e3a80fcd0fd86e83d96d7c900bb1
Created attachment 183096 [details] Bugdoc
See also: commits aafe21d8765158d223dd359e6737b64ed1b34549, c96b61f86ef3f4cdc34f84043fed2724b6d9732b, b5e07b1339f73841664b28c65639f1638bd7edf4
Same should be possible for HTML export (copy/paste to E-Mail-Editors uses HTML in most cases).
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/c3549e7857d53af25857ae50ea881cd22737d907 tdf#151605 Don't include hidden text by default in HTML filter It will be available in 7.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.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/31c5b3f10b3e1d1d86d9fc3553c6f55599b080ce tdf#151605 Add option to not include hidden text in ASCII filter It will be available in 7.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.
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/55360ba58f33f3f45c83decce092c43d25c4e48c tdf#151605: sw_uiwriter7: Add unittest It will be available in 7.6.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.