Zolta / googlebugs

Automatically exported from code.google.com/p/googlebugs
0 stars 1 forks source link

Incorrect auto-translation of spaces to tabs #686

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Write something with 8 spaces at the start of a line in your favorite text 
editor
2. Copy+Paste that text into a Google doc

What is the expected output? What do you see instead?
Expected output: 8 spaces, then my text, OR 2 tabs, then my text
Actual output: 4 spaces, then a tab.
If you increase from 8->12, you get 8 spaces then a single tab. The last 4 
spaces are always translated into a tab.

What version of the product are you using? On what operating system?
Google docs as of 2015-3-26 on Linux.

What is the url of the corresponding thread at Google Groups?
https://productforums.google.com/forum/#!searchin/docs/tabs$20spaces/docs/QMdXoW
LC01E/qH4B2r2DRVIJ
Looks close. Solution is not acceptable for regular use.

What is your support ticket from Google support?
N/A

Please provide any additional information below.
I can only assume replacing my last 4 spaces with a tab was someone's idea of a 
feature, but it's really flawed if it doesn't replace all of them and only 
replaces one. It totally screws up alignment. Like the poster on the product 
forums, I want to use google docs + fixed-width font to include example code 
snippets in my documents.

Original issue reported on code.google.com by jacob.b...@solidfire.com on 26 Mar 2015 at 4:46