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 732268 - Snippets doesn't respect unchecked "Use Spaces" nor tab width settings for PHP
Snippets doesn't respect unchecked "Use Spaces" nor tab width settings for PHP
Status: RESOLVED OBSOLETE
Product: gedit
Classification: Applications
Component: snippets
3.12.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2014-06-26 04:46 UTC by Jacob
Modified: 2020-11-24 09:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jacob 2014-06-26 04:46:04 UTC
Overview:

Some PHP programmers prefer to use tabs for indentation, Gedit has an option to use tabs or spaces for indentation, however for PHP, Snippets only uses spaces. When "Use Spaces" is checked, the different tab widths (2, 4, 8) are ignored and 4 space indentation is always used.

If this change was made to help ensure PHP code is PSR-0/4 compatible it should be reverted, as forcing a specific "coding standard" on users of a dynamically typed language is ridiculous and wrong.

Steps to Reproduce:

1. Click "Tab Width: 8"
2. Make sure "Use Spaces" is unchecked.
3. Use Snippets to insert code (for example typing "function" and pressing enter)

Actual Results:

Inserted code uses (4) spaces for indentation, not tabs. While the rest of the code typed manually will likely use tabs.

Expected Results:

The inserted code should use tabs. Or use 2, 4, or 8 spaces if "Use Spaces" is checked.
Comment 1 Jacob 2014-06-27 10:25:46 UTC
Correction: typing "function" and pressing *tab*
Comment 2 Sébastien Wilmet 2020-11-24 09:58:42 UTC
Mass-closing of all gedit bugzilla tickets.

Special "code" to find again all those gedit bugzilla tickets that were open before the mass-closing:

2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3

By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements.

We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.