After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 611677 - Gedit incorrectly formatting text indentation
Gedit incorrectly formatting text indentation
Status: RESOLVED NOTABUG
Product: gedit
Classification: Applications
Component: general
2.24.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-03 09:14 UTC by Angel Abad
Modified: 2010-05-14 07:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Angel Abad 2010-03-03 09:14:35 UTC
In Ubuntu Intrepid deepspring reported:

GEdit appears to be ignoring tab indentation in source code files. Refer to attached screenshot.

On the left, GVim renders the source code correctly.

One the right, GEdit ignores some of the tab indentation, incorrectly rendering the source code.

Changing the formatting in GEdit to fix the problem results in an incorrect number of tabs being used for indentation. For example (using "_" as whitespace):

____def myfunction(somevar, somevar2):
________if somevar == somevar2:
____________print "The vars contents are the same"

Looks like the following when the file is opened in nano, vi, gvim, emacs, editra (again using "_" for whitespace:

____def myfunction(somevar, somevar2):
______________if somevar == somevar2:
______________print "The vars contents are the same"

Launchpad ref: https://bugs.edge.launchpad.net/ubuntu/+source/gedit/+bug/349187

Thanks
Comment 1 jessevdk@gmail.com 2010-05-14 07:53:29 UTC
This is not a bug, this is simply a matter of having mixed tabs and spaces in a file, and having a different setting for the width rendering of a tab. You can modify the widh of a tab in the preferences dialog.