[haiku-development] Re: Coding guidelines

  • From: "Jorge G. Mare" <koki@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 08 May 2010 07:24:22 -0700

Niels Reedijk wrote:
At least in the particular case of the Haiku website, it is possible to
change the number of spaces per tab stop, and the solution was given in
comments 2 and 3 of the same ticket:
Changed that, does not work.

I tested it here before posting the solution on Trac, and it worked as expected.

You have to flush all caches to see the changes take place though.

So after you have changed...

    var $tab_width = 8;

to

    var $tab_width = 4;

...flush the Drupal cache (button at the bottom of the Performance page in the admin area), and reload the page: you should then see the number of spaces for each tab stop change from 8 to 4.

Stephan Assmus wrote:
Yes, replacing the tabs by four spaces is what I had in mind as acceptable
solution.

FWIW, this is exactly what the proposed solution does.

Regards,

Jorge / aka Koki


Other related posts: