You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by fabio76 <fi...@libero.it> on 2008/11/18 10:06:07 UTC

Text-align with keep-together="always" problem

Hi all,
I have the same problem. 
I have a table : 
 <fo:block>
	<fo:table table-layout="fixed" width="500pt">
		<fo:table-column column-width="15pt"/>
		<fo:table-column column-width="58pt"/>
		<fo:table-column column-width="427pt"/>
		<fo:table-body>
			<fo:table-row keep-with-next="always">
				<fo:table-cell number-columns-spanned="2">
					<fo:block> </fo:block>
				</fo:table-cell>
				<fo:table-cell>
					<fo:block id="ref" text-align="center" font-style="italic">TABLE OF
TEST</fo:block>
				</fo:table-cell>
			</fo:table-row>
			<fo:table-row>
				<fo:table-cell padding-before="2pt" number-columns-spanned="3">
					<fo:block>
						<fo:table width="500pt" table-layout="fixed">
							<fo:table-column column-width="73pt"/>
							<fo:table-column column-width="195pt"/>
							<fo:table-column column-width="232pt"/>
							<fo:table-body>
								<fo:table-row keep-together="always">
									<fo:table-cell border="0.1pt solid red" padding-before="2pt">
										<fo:block> </fo:block>
									</fo:table-cell>
									<fo:table-cell border="0.1pt solid red" padding-left="2pt">
										<fo:block color="blue" text-align="left"></fo:block>
									</fo:table-cell>
									<fo:table-cell text-align="justify" border="0.1pt solid red">
										<fo:block>bla bla bla bla bla bla bla bla bla bla bla blabla bla
</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<fo:table-row keep-together="always">
									<fo:table-cell border="0.1pt solid red" padding-before="2pt">
										<fo:block> </fo:block>
									</fo:table-cell>
									<fo:table-cell border="0.1pt solid red" padding-left="2pt">
										<fo:block color="blue" text-align="left"></fo:block>
									</fo:table-cell>
									<fo:table-cell text-align="justify" border="0.1pt solid red">
										<fo:block>bla bla bla bla bla bla bla bla bla bla bla blabla bla
</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<fo:table-row keep-together="always">
									<fo:table-cell border="0.1pt solid red" padding-before="2pt">
										<fo:block> </fo:block>
									</fo:table-cell>
									<fo:table-cell border="0.1pt solid red" padding-left="2pt">
										<fo:block color="blue" text-align="left"></fo:block>
									</fo:table-cell>
									<fo:table-cell text-align="justify" border="0.1pt solid red">
										<fo:block>bla bla bla bla bla bla bla bla bla bla bla blabla bla
</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</fo:table-body>
						</fo:table>
					</fo:block>
				</fo:table-cell>
			</fo:table-row>
		</fo:table-body>
	</fo:table>
</fo:block>

With Fop0.94 the text in each table cell is well formatted, instead with Fop
0.95 there are overflows in each table cell. Have you any ideas about this
problem?
I attached the files used in this example.
http://www.nabble.com/file/p20555779/Test.zip Test.zip 
Best Regards
Fabio
-- 
View this message in context: http://www.nabble.com/Text-align-with-keep-together%3D%22always%22-problem-tp20555779p20555779.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: Text-align with keep-together="always" problem

Posted by fabio76 <fi...@libero.it>.
Hi Pascal,
thanks for your help. 	
I replaced the keep-togheter attribute with keep-together.within-page and it
works.
Fabio





Pascal Sancho wrote:
> 
> Hi fabio,
> 
> This is now a well known behaviour of FOP 0.95 and later, since the
> implementation of inline keep properties:
> 
> keep-* properties are shorthands for:
> keep-*.within-page,
> keep-*.within-column,
> and keep-*.within-line.
> 
> If you want a different value for the latter, you should expand your
> property, by specifying:
> keep-*.within-page="always"
> 
> Pascal
> 
>> -----Message d'origine-----
>> De : fabio76 [mailto:finofinofino@libero.it] 
>> Envoyé : mardi 18 novembre 2008 10:06
>> À : fop-users@xmlgraphics.apache.org
>> Objet : Text-align with keep-together="always" problem
>> 
>> 
>> Hi all,
>> I have the same problem. 
>> I have a table : 
>>  <fo:block>
>> 	<fo:table table-layout="fixed" width="500pt">
>> 		<fo:table-column column-width="15pt"/>
>> 		<fo:table-column column-width="58pt"/>
>> 		<fo:table-column column-width="427pt"/>
>> 		<fo:table-body>
>> 			<fo:table-row keep-with-next="always">
>> 				<fo:table-cell 
>> number-columns-spanned="2">
>> 					<fo:block> </fo:block>
>> 				</fo:table-cell>
>> 				<fo:table-cell>
>> 					<fo:block id="ref" 
>> text-align="center" font-style="italic">TABLE OF
>> TEST</fo:block>
>> 				</fo:table-cell>
>> 			</fo:table-row>
>> 			<fo:table-row>
>> 				<fo:table-cell 
>> padding-before="2pt" number-columns-spanned="3">
>> 					<fo:block>
>> 						<fo:table 
>> width="500pt" table-layout="fixed">
>> 							
>> <fo:table-column column-width="73pt"/>
>> 							
>> <fo:table-column column-width="195pt"/>
>> 							
>> <fo:table-column column-width="232pt"/>
>> 							<fo:table-body>
>> 								
>> <fo:table-row keep-together="always">
>> 								
>> 	<fo:table-cell border="0.1pt solid red" padding-before="2pt">
>> 								
>> 		<fo:block> </fo:block>
>> 								
>> 	</fo:table-cell>
>> 								
>> 	<fo:table-cell border="0.1pt solid red" padding-left="2pt">
>> 								
>> 		<fo:block color="blue" text-align="left"></fo:block>
>> 								
>> 	</fo:table-cell>
>> 								
>> 	<fo:table-cell text-align="justify" border="0.1pt solid red">
>> 								
>> 		<fo:block>bla bla bla bla bla bla bla bla bla 
>> bla bla blabla bla
>> </fo:block>
>> 								
>> 	</fo:table-cell>
>> 								
>> </fo:table-row>
>> 								
>> <fo:table-row keep-together="always">
>> 								
>> 	<fo:table-cell border="0.1pt solid red" padding-before="2pt">
>> 								
>> 		<fo:block> </fo:block>
>> 								
>> 	</fo:table-cell>
>> 								
>> 	<fo:table-cell border="0.1pt solid red" padding-left="2pt">
>> 								
>> 		<fo:block color="blue" text-align="left"></fo:block>
>> 								
>> 	</fo:table-cell>
>> 								
>> 	<fo:table-cell text-align="justify" border="0.1pt solid red">
>> 								
>> 		<fo:block>bla bla bla bla bla bla bla bla bla 
>> bla bla blabla bla
>> </fo:block>
>> 								
>> 	</fo:table-cell>
>> 								
>> </fo:table-row>
>> 								
>> <fo:table-row keep-together="always">
>> 								
>> 	<fo:table-cell border="0.1pt solid red" padding-before="2pt">
>> 								
>> 		<fo:block> </fo:block>
>> 								
>> 	</fo:table-cell>
>> 								
>> 	<fo:table-cell border="0.1pt solid red" padding-left="2pt">
>> 								
>> 		<fo:block color="blue" text-align="left"></fo:block>
>> 								
>> 	</fo:table-cell>
>> 								
>> 	<fo:table-cell text-align="justify" border="0.1pt solid red">
>> 								
>> 		<fo:block>bla bla bla bla bla bla bla bla bla 
>> bla bla blabla bla
>> </fo:block>
>> 								
>> 	</fo:table-cell>
>> 								
>> </fo:table-row>
>> 							</fo:table-body>
>> 						</fo:table>
>> 					</fo:block>
>> 				</fo:table-cell>
>> 			</fo:table-row>
>> 		</fo:table-body>
>> 	</fo:table>
>> </fo:block>
>> 
>> With Fop0.94 the text in each table cell is well formatted, 
>> instead with Fop
>> 0.95 there are overflows in each table cell. Have you any 
>> ideas about this
>> problem?
>> I attached the files used in this example.
>> http://www.nabble.com/file/p20555779/Test.zip Test.zip 
>> Best Regards
>> Fabio
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Text-align-with-keep-together%3D%22always%22-problem-tp20555779p20601482.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org