https://bugs.freedesktop.org/show_bug.cgi?id=67764

          Priority: medium
            Bug ID: 67764
          Assignee: [email protected]
           Summary: FORMATTING: Spaces removed when pasting from windows
                    clipboard data stored as HTML format
          Severity: normal
    Classification: Unclassified
                OS: Windows (All)
          Reporter: [email protected]
          Hardware: Other
        Whiteboard: BSA
            Status: UNCONFIRMED
           Version: 4.1.0.4 release
         Component: Writer
           Product: LibreOffice

Created attachment 83641
  --> https://bugs.freedesktop.org/attachment.cgi?id=83641&action=edit
Nirsoft InsideClipboard file showing the state of my clipboard after copying
from Visual Studio, and a text file showing only the contents of the HTML entry
on the clipboard

Problem description: Whenever I copy text from the IDE in Microsoft Visual
Studio, and try to paste into a LibreOffice Writer document, all spaces are
removed. Pasting into other programs such as Microsoft Wordpad, the formatting
is correct and spaces appear. 

Using Nirsoft InsideClipboard, I can see that when I copy text in Visual
Studio, the data is stored as several different clipboard types, one of them
with format ID number 49426 (HTML Format).

In the HTML data on the clipboard, all spaces are stored as  , the html
escape code for a space. It appears that Writer simply removes these instead of
pasting them as spaces.

Steps to reproduce:
1. Copy text from the IDE in Microsoft Visual Studio 
1a. Alternatively, use Nirsoft InsideClipboard to load the attached .clp file
to the clipboard
1b. Alternatively, use some other method that stores data on the clipboard as
ID 49426 that uses   escape codes for all spaces. The attached .txt file
contains an example.
2. Paste the data in Writer

Current behavior: The text appears in Writer properly formatted except all
spaces are removed. Pasted text contains lines like:
struct__device_builtin__cudaMemcpy3DPeerParms

Expected behavior: Spaces should appear in the pasted text, yielding lines
like:
struct __device_builtin__ cudaMemcpy3DPeerParms

Known workarounds: If I use "Paste Special" and choose "Formatted Text [RTF]",
I will get formatted text with spaces.


Operating System: Windows 7
Version: 4.1.0.4 release

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to