Forum Discussion
Why does Teams always strip indentation when pasting text?
- May 14, 2021my-kl 
 So I got to the heart of the matter. I used the https://evercoder.github.io/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) 
my-kl This definitely should not be closed, I do not use vscode and I still have the following issues on OSX\MSTeams:
1. no markdown support (some garbage WYSIWYG constantly interfering with my typing).
2. ``` no longer creates code blocks 90% of the time. In fact, the closing ``` becomes a weird empty code block more often than the opening code block ever works.
3. pretty much everything I paste into MSTeams has it's formatting removed, so nobody can read it.
1. no markdown support (some garbage WYSIWYG constantly interfering with my typing).
2. ``` no longer creates code blocks 90% of the time. In fact, the closing ``` becomes a weird empty code block more often than the opening code block ever works.
Seems like a different issue. I have found that markdown for code blocks doesn't work for me in "Chat" but works just fine in "Channels". I would have expected it to work everywhere.
- dbompNov 18, 2021Copper ContributorI came here looking for this very conversion. It's compressing spaces everywhere now, even in ordinary chat. (Yes, I am a two-space-after-the-period person and I don't like it messed with.) This started around November 1. I don't see anything in the release notes about the change in behavior.
- CarlosRDominNov 12, 2021Copper ContributorThe fact that this trick actually works makes me even more disappointed at a _software_ company like Microsoft and their terrible coding quality... How can they have so many features that only work on a specific type of text box? E.g. you can't add formatting ("-", ">", "```") on a call's chat but you can if you do through the MSTeams app on the _same_ chat, typing a parenthesis doesn't open the emoji popup in Team but does in Chat, the indents get removed when pasting into Chat but not into Team... Please use a centralized library for text editing and let us be productive!!
- bobh_Oct 29, 2021Copper ContributorTurns out you can paste into a monospace block in a channel, copy the text back out and then paste into a monospace block in a chat and it works. You don't need to actually send the message to the channel.
 It's a pain but it works.
- WeetAOct 19, 2021Copper ContributorIn fact, it's not just indenting.
 Multiple spaces in a middle of a string are replaced by only one.
 I guess it's because monospaced paragraphs uses html formating instead of having "pre" block behavior.
- Adam ŻmudaOct 19, 2021Copper ContributorI'm using PyCharm and have the same problem.
 I can paste into a code block in a channel just fine, but if I paste into a conversation I lose indenting.
- WeetAOct 15, 2021Copper ContributorAs mentioned by a colleague, it's probably related to the following new functionality:
 - Respond to a specific message in chat whith quoted replies
- pedorroOct 14, 2021Copper ContributorYes - definitely still an issue. A couple of weeks ago, the regular ``` stopped switching immediately to a code box. Now it requires a space after it, and then it does not retain formatting. As noted elsewhere, this is only broken in Chats. The original (functional) behavior is still present in channels.
- WeetAOct 14, 2021Copper ContributorAnother thing which doesn't work too on chats: CTRL+A to select all when you write a message.
 It worked by the past.
 Now, it only works on channels' conversations
- WeetAOct 14, 2021Copper ContributorYou're right.
 I didn't pay attention.
 It only works now on channels