# \[OT} Problems with pasting using Gmail, anyone else?

**URL:** <https://www.ruby-forum.com/t/ot-problems-with-pasting-using-gmail-anyone-else/138807>\
**Category:** Ruby\
**Created:** [May 27, 2008, 11:14pm UTC](https://www.ruby-forum.com/t/ot-problems-with-pasting-using-gmail-anyone-else/138807 "2008-05-27T23:14:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![toadkicker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5fc32e/32.png) [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Post date:** [May 27, 2008, 11:14pm UTC](https://www.ruby-forum.com/t/ot-problems-with-pasting-using-gmail-anyone-else/138807/1 "2008-05-27T23:14:21Z")

</div>

I’ve posted code with correct spacing (indent of 2 spaces) by pasting  
from vim into gmail, and I’m missing spaces on lines that have  
them.when reading the code I sent through gmail. There’s something  
I’m obviously missing here (something to do with the ‘folding’ of  
pastes feature that gmail provides?). Here’s code pasted from two  
sources. I’d appreciate it if you could let me know if it shows up  
with the “p bar” line properly indented with 2 spaces.

pasted from gvim:  
def foo  
p bar  
end

pasted from notepad:  
def foo  
p bar  
end

I suspect it’s the gmail browser UI for mail that I’m using, but I’m not  
sure.

Thanks,  
Todd

---

<div class="post-metadata">

**Author:** ![toadkicker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5fc32e/32.png) [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Post date:** [May 27, 2008, 11:23pm UTC](https://www.ruby-forum.com/t/ot-problems-with-pasting-using-gmail-anyone-else/138807/2 "2008-05-27T23:23:45Z")

</div>

On Tue, May 27, 2008 at 4:13 PM, Todd B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I’ve posted code with correct spacing (indent of 2 spaces) by pasting  
> from vim into gmail, and I’m missing spaces on lines that have  
> them.when reading the code I sent through gmail.

Never mind. It turns up just fine at the code I was originally  
concerned about at…

[http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb?key=n00b+question&cginame=namazu.rb&submit=Search&dbname=ruby-talk&max=50&whence=0](http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb?key=n00b+question&cginame=namazu.rb&submit=Search&dbname=ruby-talk&max=50&whence=0)

But what about other Gmail readers? Hmm…

Todd

---

<div class="post-metadata">

**Author:** ![toadkicker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5fc32e/32.png) [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Post date:** [May 27, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/ot-problems-with-pasting-using-gmail-anyone-else/138807/3 "2008-05-27T23:32:33Z")

</div>

On Tue, May 27, 2008 at 4:13 PM, Todd B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> pasted from gvim:  
> def foo  
> p bar  
> end
> 
> pasted from notepad:  
> def foo  
> p bar  
> end

Confirmed this to be a problem with gmail and/or the  
news-group/mail-list gateway. I lose a single space on lines that  
start with more than one space on the mail-list.

Todd
