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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

java - How to implement an entity bound odata action in olingo v4.3 -