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]

Re: How to remove surplus spaces.


Josef Karthauser wrote:
> 
> Is there an easy way to remove surplus spaces in things like:
> 
>     <quote> something </quote>?
> 
> I'd like to have the stylesheet automatically remove the leading and
> trailing white space.

Stylesheet can do this, but it isn't as easy as you can expect (you can
play with normalize-spaces() function if you want). And in fact
stylesheet shouldn't remove these spaces as they are significant, you
should change your markup to correct form:

<quote>something</quote>

				Jirka

-- 
-----------------------------------------------------------------
  Jirka Kosek  	                     
  e-mail: jirka@kosek.cz
  http://www.kosek.cz


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