GNU bug report logs - #20282
css-mode: multiple selectors *sometimes* breaks indentation

Previous Next

Package: emacs;

Reported by: dse <at> webonastick.com

Date: Thu, 9 Apr 2015 06:28:02 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Darren Embry <dse <at> webonastick.com>
To: 20282 <at> debbugs.gnu.org
Subject: bug#20282: css-mode: multiple selectors *sometimes* breaks indentation
Date: Wed, 8 Apr 2015 18:58:34 -0400
[Message part 1 (text/plain, inline)]
The following rather simple example of a chunk of CSS:

    a, b:hover {
           color: black;
       }

gets indented incorrectly.  The second line gets indented seven spaces
instead of four; the last gets three spaces instead of zero.

In this more complex example, the closing bracket lines up with the 'j':

    a.b:c,d.e:f,g[h]:i,j[k]:l,.m.n:o,.p.q:r,.s[t]:u,.v[w]:x {
  background-color: white;
                       }

This example, however, is indented just fine:

    a, b:hover, c {
        color: black;
    }

I've tried this in emacs-24.4 and emacs-24.5-rc3 on Linux, as well as 24.4
on the Windows platform.

Regards,
Darren
[Message part 2 (text/html, inline)]

This bug report was last modified 10 years and 48 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.