#6 if then else indentation problem

closed-wont-fix
None
5
2001-07-15
2001-06-20
No

With the following your php-mode fails to indent
correctly:

if ($test)
sleep(1);
else
sleep(2);
more statements;
more other statements;

It will instead indent it like:

if ($test)
sleep(1);
else
sleep(2);
other statements;
more other statements;

Discussion

  • Turadg Aleahmad

    Turadg Aleahmad - 2001-07-15
    • assigned_to: nobody --> turadg
    • status: open --> closed-wont-fix
     
  • Turadg Aleahmad

    Turadg Aleahmad - 2001-07-15

    Logged In: YES
    user_id=137402

    It looks like the formatting got lost but I get what you're
    talking about. The problem is that php-mode inherits the
    formatting logic from cc-mode. As such, it's limited to
    the options provided by cc-mode. To set these options,
    check out the cc-mode Customization buffer.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks