[Libreoffice-bugs] [Bug 141117] New: Losing indents when copy from IDEs like Visual Studio COde

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Mar 19 21:37:24 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=141117

            Bug ID: 141117
           Summary: Losing indents when copy from IDEs like Visual Studio
                    COde
           Product: LibreOffice
           Version: 7.1.1.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: tzoghaib at gmail.com

Created attachment 170576
  --> https://bugs.documentfoundation.org/attachment.cgi?id=170576&action=edit
Code snippet in VS Code and the copy in LibreOffice

Hello,

I write code in Visual Studio Code and want to paste this with right colors and
indents in LibreOffice. The problem is, that LO Writer delete all tabs and
spaces which are in a line before the code. So, the code stands on the left.

It doesn't matter if I use tabs or spaces in VS Code. The indents will stored
in the clipboard, a short test with a text editor (xed) shows this.

The problem appears at Visual Studio Code 1.54.3 and Atom 1.55.0. If I copy the
same code from Jetbrains Webstorm or Sublime, the indents works out of the box.
If I copy code from VS Code to OnlyOffice, it works like a charm!

So, I think its a file format, in which VS Code stores the code to clipboard
and when LibreOffice want to insert this, they can't read the indents right.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210319/8f1ac6c9/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list