Thanks - I'll look into those options.
I was lucky I spotted your reply.. it had gone into my
spam folder!
Regards,
Tim
---
--- Hussein Shafie <hussein at pixware.fr> wrote:
> Tim Read wrote:
> > I'm very new to XML so forgive my terminology...
> >
> > I want to input a section where the hierachy comes
> > down to entering plain text, which is actually
> going
> > to be shell script. When I originally entered the
> > code, it had carriage return/linefeeds in.
> > Unfortunately, once I brought it into the editor,
> it
> > striped off all these <CR><LF> to make it one long
> > string.
> >
> > Is there any way to force the <CR><LF> back into
> the
> > text? All of the rest of the code gets beautifully
> > formatted.
>
> --> If you are authoring a DocBook document, type
> your shell script in
> an element for which whitespace (<CR><LF> is
> considered to be
> whitespace) is preserved: address,
> funcsynopsisinfo, classsynopsisinfo,
> literallayout, programlisting, screen or synopsis.
>
> --> Generic answer: if you want our XML editor to
> preserve the
> whitespace you entered:
>
> [1] The element containing the text must have the
> attribute
> xml:space="preserve"[*]
>
> For the convenience of authors, this attribute is
> often specified by
> default, in the DTD. Example: the XHTML DTD and
> element <pre>.
>
> [2] If you use a CSS style sheet, this CSS style
> sheet should contain a
> rule similar to:
>
> ---
> my-verbatim-element {
> display: block;
> white-space: pre;
> }
> ---
>
> ---
> [*] There is an alternative
>
(http://www.xmlmind.com/xmleditor/_distrib/doc/configure/ch06s18.html)
> to this approach but I'll not describe it in this
> email.
>