Forum Discussion
my-kl
May 12, 2021Brass Contributor
Why does Teams always strip indentation when pasting text?
It's fairly common to want to post code in teams (without using the special formatting for code snippets). The markdown like syntax for code works pretty well when typing code and it preserves ind...
- May 14, 2021
my-kl
So I got to the heart of the matter. I used the Clipboard Inspector to inspect the contents of clipboard when copying the same text from two different apps. Both have two entries. One of the entries is text/html and one is text/plain. The text/plain as you might guess is identical. The html is quite different. I then copied the html and rendered.
This is what I see from TextEditThis is what I see from Visual Studio Code
So this would appear to be an issue with my environment in Visual Studio Code (or even a defect in Code, I"m not sure)
kubermensch
Jan 16, 2023Copper Contributor
This is in fact worse in teams on Linux.
If i paste this code-snippet from here
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications
with XML.</description>
</book>
This is what it looks like when posted on linux
and when posted on windows 10
Teams version on Linux - You have Microsoft Teams Version 1.5.00.23861 (64-bit).
Teams version on Windows 10 - You have Microsoft Teams Version 1.5.00.31168 (64-bit). It was last updated on 11/25/22.
Linux distro:
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
- PierreDumuid_kydJan 19, 2023Copper Contributor
This issue is causing considerable pain.
It seems in the last few weeks that pasting of text containing newlines in it are having them removed.
I confirmed that this is occurring both in windows and linux.
This should be a very high priority bug to fix - pasting many lines of console output to share with colleagues is extremely hard to read without manually re-inserting the newline characters.
Inserting a code-snippet is a slow work around, and forces titles and other painful UI experiences.
- WackyWixFeb 02, 2023Copper Contributor
Can't even copy paste SQL code into Teams anymore, it is introducing non-breaking white spaces into the code, hex notation: 0xAO, instead of ASCII 32
So annoying!!!!- BBrandtTXFeb 22, 2023Copper ContributorMoving our dev team to a free slack instance has completely fixed this issue for us.