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]
Other format: [Raw text]

[docbook-apps] Indenting elements such as <screen>


I have elements in my book that are laid out like so:

      <screen>
        <prompt>#</prompt> <userinput>./win_lottery.pl</userinput>
        <computeroutput> ..... </computeroutput>
      </screen>

I indent each new tag by two spaces so that the XML is human readable and 
I can edit it easily.  However, as the <screen> is literal the indent 
spaces are taken into account.  As I see it I have two choices, either 
remove the spaces and have the whole block flush with column 0 or wrap 
each line in it's own <screen> tags.  Solution one is messy as I have a 
large number of these in my document and solution two I doubt is a very 
good way of doing things.

How do other people do this and still get XML documents that are nicely 
formatted?

An odd question I know but any suggestions welcome,

David

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


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