2010-02-09 2 views
7

In xls-fo fop 0.94 Die Verwendung des keep-together zusammen mit wrap-option = "wrap" ignoriert die Umbruchoption? Gibt es eine Möglichkeit, beide zum Funktionieren zu bringen?xls-fo fop 0.94 Verwenden des keep-together mit wrap-option = "wrap"

<fo:table-row border="1pt solid black" keep-together="always"> 
     <fo:table-cell> 
      <fo:block overflow="scroll" wrap-option="wrap"> 
      This is a long text It is desired that this text be wrapped in the table cell but just can not make it happen! 
      </fo:block> 
     </fo:table-cell> 
    </fo:table-row> 

Antwort

8

Keep zusammen = "always" implizit Sätze halten-together.within-line = "always", die im Grunde Zeilenumbruch verbietet. Verwenden Sie keep-together.within-column = "always" stattdessen!

Siehe auch: http://xmlgraphics.apache.org/fop/faq.html#keep-together

BWT, Überlauf = "scroll" wird nicht von FOP unterstützt. Das ist nur für XSL-FO im Browser-Modus relevant. Sie können nicht auf Papier blättern.