From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angela Bellavance Newsgroups: gmane.emacs.help Subject: Possible bugs with indentation in html mode Date: Fri, 16 Feb 2007 17:31:18 -0600 Message-ID: <45D63EC6.2090703@fnal.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1171668708 13623 80.91.229.12 (16 Feb 2007 23:31:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Feb 2007 23:31:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 17 00:31:41 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HICYD-0003NF-BZ for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Feb 2007 00:31:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HICYC-000746-Q9 for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Feb 2007 18:31:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HICY1-000741-99 for help-gnu-emacs@gnu.org; Fri, 16 Feb 2007 18:31:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HICXz-00073p-SN for help-gnu-emacs@gnu.org; Fri, 16 Feb 2007 18:31:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HICXz-00073m-LU for help-gnu-emacs@gnu.org; Fri, 16 Feb 2007 18:31:23 -0500 Original-Received: from mailgw1.fnal.gov ([131.225.111.11]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HICXz-0006Hz-A6 for help-gnu-emacs@gnu.org; Fri, 16 Feb 2007 18:31:23 -0500 Original-Received: from mailav2.fnal.gov (mailav2.fnal.gov [131.225.111.20]) by mailgw1.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) with SMTP id <0JDK000FUX9G5G@mailgw1.fnal.gov> for help-gnu-emacs@gnu.org; Fri, 16 Feb 2007 17:31:22 -0600 (CST) Original-Received: from mailgw2.fnal.gov ([131.225.111.12]) by mailav2.fnal.gov (SAVSMTP 3.1.7.47) with SMTP id M2007021617312212242 for ; Fri, 16 Feb 2007 17:31:22 -0600 Original-Received: from conversion-daemon.mailgw2.fnal.gov by mailgw2.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) id <0JDK00I01XBIUF@mailgw2.fnal.gov> (original mail from bellavan@fnal.gov) for help-gnu-emacs@gnu.org; Fri, 16 Feb 2007 17:31:22 -0600 (CST) Original-Received: from [127.0.0.1] (CD-106022.dhcp.fnal.gov [131.225.162.142]) by mailgw2.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) with ESMTPA id <0JDK00LN4XCAP0@mailgw2.fnal.gov> for help-gnu-emacs@gnu.org; Fri, 16 Feb 2007 17:31:22 -0600 (CST) User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) X-detected-kernel: Solaris 9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41266 Archived-At: Hello, I'm editing HTML code using emacs and I'm noticing some strange behavior with the indentation. I can hit TAB on elements like "" and "" and "
", and emacs will happily indent each by two spaces relative to the container tag, ending the additional space when it finds the corresponding closing tag. However, it does not handle single tags well (e.g. "
", "", etc.). Emacs adds the two-space indentation following one of these single tags and will not decrement the indentation unless a closing tag is found for some surrounding set of tags. Is there any chance of fixing this behavior? I had one other question as well. Is there any way to make the indentation behavior follow the "relative to previous line" rule? Personally, I don't always want the addition of two spaces of indentation added every time I open a tag set. For example, I would prefer something like this: <font color="black">This is my title</font>

This is my title


Cell 1 Cell 2
But if I TAB-indent the above HTML using Emacs, I get this: <font color="black">This is my title</font>

This is my title


Cell 1 Cell 2
When I've got nested tables with large cell contents, having every line indented those extra several spaces can really be a pain.... Thanks for any help or suggestions! - Angela -- Dr. Angela Bellavance Fermilab Computing Division Running Experiments Operations 630-840-2284 bellavan@fnal.gov