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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -