xsl fo - Avoid line break between minus sign and amount -


i'm generating pdf using fop.

due box width constraint, message "balance of -$578.09 previous bill" split 2 lines, minus sign @ end of first line , amount @ beginning of second line.

input:

<fo:block>balance of -$578.09 previous bill</fo:block> 

output:

balance of - $578.09 from. 

how can keep value in message?

you can use keep property ensure minus sign not considered feasible position line break:

<fo:block>     balance of      <fo:inline keep-together="always">-$578.09</fo:inline>      previous bill </fo:block> 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -