Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using gedit to edit a ruby file. In gedit (and Sublime) certain tabs are not displayed, that are displayed when I paste into the Internet, open with vi or open with Geany.

This is all summarized in the following photo which you can zoom in to see the details (look at the lines that start with a #: Examples of tabs not displaying

Is this a setting problem or an actual bug that I should report? This would be a minor problem except unexpected tabs break my documentation generator, which breaks more things that are important to me.

share|improve this question

Turns out it was a hidden character problem. I was using a mix of tabs and spaces that wasn't being detected by gedit, but was being displayed by vi since it had a different tab size. Converting all of my spaces into tabs fixed the problem.

share|improve this answer
This I was thinking to suggest you now... Anyway, good to know. – Radu Rădeanu Aug 22 '13 at 5:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.