This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sgml auto-indenter


Norman Walsh wrote:
/ "Kevin M. Dunn" <kdunn@hsc.edu> was heard to say:
|          <PARA>
|
|            Lists

Note that you've introduced significant whitespace here which may or
may not be ignored by your formatter. In general, you can't add any
whitespace to an element that contains #PCDATA content without
introducing significant whitespace.

 

Perhaps only tags should be indented:

 <PARA>
Here is some text containing an <EMPHASIS>important</EMPHASIS> word. But I
would like to indent
   <ORDEREDLIST>
     <LISTITEM>
       <PARA>
Lists
       </PARA>
     </LISTITEM>
     <LISTITEM>
       <PARA>
Paragraphs but not <EMPHASIS>emphasis</EMPHASIS>
       </PARA>
     </LISTITEM>
   </ORDEREDLIST>
This text will be passed through
unaltered.
 </PARA>

Does this style break anything?
Can anyone suggest a useful indentation style which would be completely benign?

-- 
Kevin M. Dunn
kdunn@hsc.edu
Department of Chemistry
Hampden-Sydney College
HSC, VA 23943
(804) 223-6181
(804) 223-6374 (Fax)
 
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]