From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#15467: CSS-mode gives weird indentation when you put opening bracket on its own line Date: Thu, 26 Sep 2013 16:23:42 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8ff1cd66e7bec504e74a1d3f X-Trace: ger.gmane.org 1380205449 1231 80.91.229.3 (26 Sep 2013 14:24:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Sep 2013 14:24:09 +0000 (UTC) To: 15467@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 26 16:24:12 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VPCUF-0003e5-VE for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Sep 2013 16:24:12 +0200 Original-Received: from localhost ([::1]:58241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPCUF-00030x-Hc for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Sep 2013 10:24:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPCU8-00030d-16 for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 10:24:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPCU6-0002rd-Qq for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 10:24:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPCU6-0002rZ-Nc for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 10:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VPCU6-0008UN-51 for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 10:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Sep 2013 14:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15467 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138020543232614 (code B ref -1); Thu, 26 Sep 2013 14:24:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Sep 2013 14:23:52 +0000 Original-Received: from localhost ([127.0.0.1]:37998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VPCTv-0008Tx-HC for submit@debbugs.gnu.org; Thu, 26 Sep 2013 10:23:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52496) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VPCTt-0008Tn-2G for submit@debbugs.gnu.org; Thu, 26 Sep 2013 10:23:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPCTr-0002om-RB for submit@debbugs.gnu.org; Thu, 26 Sep 2013 10:23:48 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPCTr-0002oi-Mj for submit@debbugs.gnu.org; Thu, 26 Sep 2013 10:23:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPCTq-000306-99 for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 10:23:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPCTn-0002mj-6X for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 10:23:46 -0400 Original-Received: from mail-oa0-x233.google.com ([2607:f8b0:4003:c02::233]:62492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPCTn-0002mb-1F for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 10:23:43 -0400 Original-Received: by mail-oa0-f51.google.com with SMTP id h16so756210oag.10 for ; Thu, 26 Sep 2013 07:23:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=+F9k5CV3GV2LZTnH9WGQMYh3EZLGruRlDwU4Ab0AtAU=; b=Mzld02N+fx1RmasB+fLr1nr7WP+hZy4ZfGcIGq7rW3TTxLgUNizJfT0hs1lPT/F9nq 1n7L8QjVjNazdMucX+nn8n4iW9ooe4W3+NNGIcbT1gVx/EC45VUTkrXeuZGkRAZ1K40T 8DGXbDGqKWUwRN16/4r9vCAeFXurQQrH75c2TlCFjZoaCIswYRYo0xLTOnrWDfj8SZuo jBWtNEjEYObSJLerKNw18yEUEnUV+Xc8vD9PzdwSqktbr4ol0T9g2jJ3Tmn2R5wepbBP JsciCKEj71620FdqAw0b/uLQbqYhYejCKcTgxRb+59bLnIO/eciRce6tpouN7arJg/27 o4aw== X-Received: by 10.182.242.37 with SMTP id wn5mr994053obc.56.1380205422164; Thu, 26 Sep 2013 07:23:42 -0700 (PDT) Original-Received: by 10.182.200.163 with HTTP; Thu, 26 Sep 2013 07:23:42 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78754 Archived-At: --e89a8ff1cd66e7bec504e74a1d3f Content-Type: text/plain; charset=UTF-8 For example, if you create a CSS buffer and put .xxx { } into it, indentation adds one space before '{'. Confusingly, if you add one or more empty line at the start (i.e. before this only rule), indentation is back to normal, with '{' in the column 0. However, this seems to apply only to the very first rule, all others are always broken. Paul --e89a8ff1cd66e7bec504e74a1d3f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
For example, if you create a CSS buffer and= put

.xxx
{
}

into it, indentation adds one= space before '{'. Confusingly, if you add one or more empty line a= t the start (i.e. before this only rule), indentation is back to normal, wi= th '{' in the column 0. However, this seems to apply only to the ve= ry first rule, all others are always broken.

Paul


--e89a8ff1cd66e7bec504e74a1d3f--