Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3973

puppet-mode.el indentation problems with if/else blocks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Template:

      Description

      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:

        if $puppetmaster_checklastrun {
          include puppet::puppetmaster::checklastrun
        } else {
          include puppet::puppetmaster::checklastrun::disable
        }
      

      The puppet-mode wants to indent this into the following:

        if $puppetmaster_checklastrun {
          include puppet::puppetmaster::checklastrun
          } else {
          include puppet::puppetmaster::checklastrun::disable
          }
      

      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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            redmine.exporter redmine.exporter
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support