[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Indentation problems in SGML mode
From: |
Jeffery B. Rancier |
Subject: |
Indentation problems in SGML mode |
Date: |
Tue, 13 May 2003 12:18:47 -0400 |
User-agent: |
Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (windows-nt) |
I'm seeing peculiar indentation in some of my XML files. For example,
if I start with the following:
<?xml version="1.0"?>
<project name="ScreenDesigner" default="help" basedir=".">
<!-- Project directories -->
<property name="src.dir" value="src"/>
<property name="doc.dir" value="doc"/>
<property name="dist.dir" value="dist"/>
<property name="lib.dir" value="lib"/>
<property name="bin.dir" value="bin"/>
<!-- Temporary build directories -->
<property name="build.dir" value="build"/>
<property name="build.classes" value="${build.dir}/classes"/>
<property name="build.doc" value="${build.dir}/doc"/>
<property name="build.lib" value="${build.dir}/lib"/>
and run mark-whole-buffer, and run indent-region, I get the
following. Is a bug in SGML mode?
<?xml version="1.0"?>
<project name="ScreenDesigner" default="help" basedir=".">
<!-- Project directories -->
<property name="src.dir" value="src"/>
<property name="doc.dir" value="doc"/>
<property name="dist.dir" value="dist"/>
<property name="lib.dir" value="lib"/>
<property name="bin.dir" value="bin"/>
<!-- Temporary build directories -->
<property name="build.dir" value="build"/>
<property name="build.classes"
value="${build.dir}/classes"/>
<property name="build.doc" value="${build.dir}/doc"/>
<property name="build.lib"
value="${build.dir}/lib"/>
--
Thanks,
Jeff
,----
| Jeffery B. Rancier
|
| Softechnics
| a METTLER TOLEDO company
`----