From: Jay Bryant [mailto:[EMAIL PROTECTED] > From: Miren Urkijo <mailto:[EMAIL PROTECTED]> > > To: [email protected] > > Sent: Monday, January 16, 2006 1:11 PM > > Subject: line break (<br>) > > HEllo > > i have one great problem > > into one String i have several <br> > > i am trying to write this into one pdf as one line > > break (<br> into html) but i dont solve this problem > > can anybody helps me? > > thanks > > One way to get a line break is to use an empty block: > > <fo:block/> > > Depending on what attributes the containing block has, > you may also need to specify the height of the block: > > <fo:block line-height="0"/> should give you a line break > without producing an empty line.
I found quite usefull implementation by adding an extra space before the empty block: <xsl:template match="br"> <fo:block/></xsl:template> This was because consecutive forced line breaks <fo:block/><fo:block/> didn't produce any empty lines: since the block was empty, it only switched to the next row (i.e. pixel or something like that). So with this extra space even this works as expected: Test<br/> <br/> Here we go! Line-height attribute has to be 0 as said in the previous mail. Without that single forced line breaks won't work as expected. Regards, Jukka Ignatius --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
