This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Indenting elements such as <screen>
- From: David Cannings <lists at edeca dot net>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Sun, 9 May 2004 22:46:18 +0100
- Subject: [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/.