Summary: | LibreOffice Writer paste or paste-unformatted function adds field shading after punctuation to text pasted from other apps (e.g. word, gmail, atlantis) | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | wolf <wolf> |
Component: | LibreOffice | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | enhancement | CC: | heiko.tietze, miguelangelrv, vsfoote |
Priority: | medium | ||
Version: | 7.6.2.1 release | ||
Hardware: | All | ||
OS: | All | ||
URL: | https://ask.libreoffice.org/t/weird-gray-spaces-between-words/42903/13 | ||
See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=58434 | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 102345 | ||
Attachments: | Writer Flat ODF sample file with Unicode formatting codes subject to Field Shading |
Description
wolf
2024-03-14 04:45:03 UTC
LibreOffice already provides the Paste Special -> Unformatted Text that will remove what is essentially formatting as held on clipboard in the text being pasted from os/DE clipboard. Paste as Unformatted Text removes any gray field shading boxes (alternatively the toggle <Ctrl>+F8 will suppress, though bug 58434 is open to move to <Ctrl>+F10 NPC toggle). It just depends on how much else of the formatting/style of the copied text you need to retain. If you need more, the Paste Special -> More... dialog will offer any additional formats your system clipboard is reporting to LibreOffice. A few clipboard formats won't be recognized (depending on the source application and the LO module in use) and the handling of the pasted content will depend on content of the clipboard format and the LO filter implementation handling of that content. Nothing to be fixed here, LO *consumes* what is present on the os/DE clipboard. (In reply to wolf from comment #0) > Description: > ......... > a gray space after many punctuations is an eyesore to most writers using > libreoffice when it doesnt happen anywhere else. for 10+ years, it’s a most > annoying thing that makes thousands avoid using librewriter more. > .......... Why do you need to mention thousands of annoyed people, do you really think it will sell your personal interest any better? Instead, better ask those thousands to add their comment supporting this report? i restarted in safe mode, as expected, the same issues occur. this occurs using both 'paste' and 'paste unformatted' which is why an option to turn this 'off' by default ideal to match behavior of most other editors ex word, gmail. i will double-check the 'paste special' options to see if any work, if it does, that'd be a good to know workaround, but still the default paste behavior for writers coming from word/gmail type editors that mask this info by default. i'm told 'non-breaking space' is widespread in HTML markup and copying from web pages would bring existing NBSPs along. ok, but i'm primarily talking about text i personally typed cleanly with no accidental 'shift' or 'ctrl' keystrokes. note: pasting content from a long notepad file i have pasted clean, no gray spaces. i restarted in safe mode, as expected, the same issues occur. my bad, for trying to sell the case for 'thousands' of others who opted out because of it as i have, but am now returning to face it again. Can not confirm. Observe that Paste Special -> Unformatted Text does strips out the NBS or ZW characters that show as gray field shading. just triple-checked: there is no paste option that strips out these gray shading/spaces after punctuation and on line breaks. and 90% of the time, i aim to paste with basic rtf formatting vs strip it out. Created attachment 193120 [details] Writer Flat ODF sample file with Unicode formatting codes subject to Field Shading Attaching a sample document that shows the objectionable handling as field shading on paste, either default or as unformatted text. A copy & paste of the text will show the current handling of the Unicode formatting marks as field shading. Use <Ctrl>+F8 to toggle off the Field shading, Use <Ctrl>+F10 to toggle off the NPC. And the unformatted paste does not clear the specific Unicode glyphs that result in the field shading. So I was wrong regards that, sorry for the noise. However, beyond VCL formatting changes needed for bug 58434, there is nothing incorrect with LibreOffice's handling on paste of clipboard content. Applying field shading needs to be removed, that is bug 58434 <Ctrl>+F8 to toggle off the Field Shading works! a workaround existed all these years deep under the hood. so the enhancement would simply be to turn Field Shading 'off' by default. mikekaganski informs me that 24.2 has the “off by default” implemented. I guess you know ctrl+F10 resp. the button with a pilcrow icon (¶) to show/hide formatting marks and would easily get the point of highlighted special breaks. So let's make this report a duplicate of bug 58434. (In reply to wolf from comment #4) > i'm primarily talking about text i personally typed cleanly > with no accidental 'shift' or 'ctrl' keystrokes. You wont see any formatting mark or field that is getting highlighted then. *** This bug has been marked as a duplicate of bug 58434 *** |