have you looked at the Text Layout tab for <programlisting> on
Tools|Customisations?
XMetal applies whiteshapce handling rules each time you save, switch from
tags on to source view etc.
set the <programlisting> Text Layout options to "preserve space" and XMetaL
will stop mangling your whitespace
Ian Atkin, Code Monkey
[EMAIL PROTECTED]
020-7954-4234
======================================
Wide Learning is a trading name of Wide Multimedia Ltd
Registered office: 8-11 Crescent, Tower Hill, London EC3N 2LY
Company number: 3339664 VAT number: 690 8399 83
======================================
> -----Original Message-----
> From: Norman Walsh [SMTP:[EMAIL PROTECTED]]
> Sent: 21 March, 2001 7:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: DOCBOOK: Representing CDATA sections
>
> / Beth Fischi <[EMAIL PROTECTED]> was heard to say:
> | Right now, I have everything inside <programlisting> and I've changed
> all
> | the < and > symbols for the elements to < and >. However, I'm
> working
> | in XMetaL, and every time I save the file, all the spacing gets messed
> up.
> | Here's a simplified sample of what I'm talking about:
> |
> | <programlisting>
>
> You could try adding "xml:space='preserve'" on this tag. You could
> also try something like this:
>
> <programlisting><![CDATA[<name>
> <date>
> <![CDATA[
> WHERE T1.date like :V1
> ]]>]]><![CDATA[
> </name>
> </date>]]></programlisting>
>
> Ugly, but it should work.
>
> | Any alternate ideas?
>
> If you're using the XSL or DSSSL stylesheets, you could use the
> format='linespecific' hack to load the content from an external file.
>
> Be seeing you,
> norm
>
> --
> Norman Walsh <[EMAIL PROTECTED]> | It is seldom that any liberty is
> http://www.oasis-open.org/docbook/ | lost all at once.--David Hume
> Chair, DocBook Technical Committee |
>
> ------------------------------------------------------------------
> To unsubscribe from this elist send a message with the single word
> "unsubscribe" in the body to: [EMAIL PROTECTED]
------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: [EMAIL PROTECTED]