Issue #5401 has been updated by James Turnbull. Status changed from Unreviewed to Accepted
---------------------------------------- Bug #5401: puppet-mode.el indentation problems with if/else blocks https://projects.puppetlabs.com/issues/5401 Author: micah - Status: Accepted Priority: Normal Assignee: Category: ext Target version: Affected Puppet version: 2.6.0 Keywords: emacs, mode, formatting Branch: The emacs puppet-mode.el works really well, however as the language has developed more functionality, the mode has not caught up with it. One issue that I've noticed is as follows, if we have the following code: <pre> if $puppetmaster_checklastrun { include puppet::puppetmaster::checklastrun } else { include puppet::puppetmaster::checklastrun::disable } </pre> The puppet-mode wants to indent this into the following: <pre> if $puppetmaster_checklastrun { include puppet::puppetmaster::checklastrun } else { include puppet::puppetmaster::checklastrun::disable } </pre> and then any following code will be similarly be affected in a cascading way. Note: I've assigned the Category to be 'ext' as this is where the puppet-mode.el used to reside, however this may not be the correct category (or perhaps a new category for these issues would be warranted), if so, please feel free to change it. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
