Re: [css2xslfo-support] <br> tags
Brought to you by:
wdonne
From: <wer...@re...> - 2005-08-07 18:40:09
|
Hi Andreas, As far as I can see the following is generated for <br/>: <fo:inline margin-left=3D"0pt" margin-right=3D"0pt"> <fo:block/> </fo:inline> I think the space-after comes from a margin-bottom in the style sheet. Do you have a rule like "* { margin-bottom: 0.5em; }" somewhere? Best regards, Werner. Andreas Jung wrote: > Wolfgang, >=20 > we have some preformatted text that need to be translated to PDF (using= =20 > Xinc). <pre>...text..</pre> is translated to <fo:block white-space=3D"p= re">. > However Xinc does not recognize the white-space attribute. As workaroun= d=20 > I generate >=20 > <div > line1<br/> > line2<br/> > ..</div> >=20 > This works fine except csstoxslfo generates <fo:block=20 > space-after=3D"0.5em"...> which produces large gaps between all lines. > So I added >=20 > br { > space-after: 0; > } >=20 > to my stylesheet but I the value for space-after remains unchanged in=20 > the generated FO file. >=20 > Any ideas why? >=20 > Andreas >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dcl= ick > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support >=20 >=20 --=20 Werner Donn=E9 -- Re BVBA Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |