Bug 41377 - Alignment (end, right) does not work in table-cells
Summary: Alignment (end, right) does not work in table-cells
Status: CLOSED WORKSFORME
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: rtf (show other bugs)
Version: 0.93
Hardware: All Windows XP
: P1 blocker
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-16 03:49 UTC by Gernot Koller
Modified: 2012-04-01 14:39 UTC (History)
0 users



Attachments
complete sample fo (1.29 KB, text/plain)
2007-01-16 03:50 UTC, Gernot Koller
Details
Fixed FO sample file (1.32 KB, text/xml)
2007-01-16 13:32 UTC, Jeremias Maerki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gernot Koller 2007-01-16 03:49:13 UTC
Trying to create right aligned text within tablecells doesn't work for rtf.
Using code like this:

<fo:table>
	<fo:table-column column-width="9cm" />
	<fo:table-column column-width="9cm" />
	<fo:table-body>
		<fo:table-row>
			<fo:table-cell display-align="end">
				<fo:block text-align="end">
					right1
				</fo:block>
			</fo:table-cell>
			<fo:table-cell display-align="start">
				<fo:block text-align="start">
					left1
				</fo:block>
			</fo:table-cell>
		</fo:table-row>
		<fo:table-row>
			<fo:table-cell display-align="end">
				<fo:block text-align="end">
					right2
				</fo:block>
			</fo:table-cell>
			<fo:table-cell display-align="start">
				<fo:block text-align="start">
					left2
				</fo:block>
			</fo:table-cell>
		</fo:table-row>
	</fo:table-body>

produces a rtf document with a table where all strings are left-aligned.
Comment 1 Gernot Koller 2007-01-16 03:50:37 UTC
Created attachment 19411 [details]
complete sample fo 

Complete sample demonstrating the problem
Comment 2 Gernot Koller 2007-01-16 03:54:38 UTC
I also tried the sample with current svn trunk version, but failed,
I tried with jfor-0.7.1 and it also did not work.
Then I tried with jfor-0.7.2rc1 and it worked !!!
So jfor-0.7.2rc1 might contain the necessary fixes for fop-0.93...
Comment 3 Jeremias Maerki 2007-01-16 13:32:26 UTC
Created attachment 19416 [details]
Fixed FO sample file
Comment 4 Jeremias Maerki 2007-01-16 13:34:38 UTC
After fixing some serious mistakes in your sample FO file, it worked just fine
for me with FOP 0.93 and FOP Trunk. Note that "start" and "end" are invalid
values for display-align. There you need to use "before" and "after" for
vertical alignment. Note also, that display-align doesn't work for RTF output in
0.93. This is fixed in FOP Trunk.
Comment 5 Gernot Koller 2007-01-17 02:47:49 UTC
(In reply to comment #4)
> After fixing some serious mistakes in your sample FO file, it worked just fine
> for me with FOP 0.93 and FOP Trunk. Note that "start" and "end" are invalid
> values for display-align. There you need to use "before" and "after" for
> vertical alignment. Note also, that display-align doesn't work for RTF output in
> 0.93. This is fixed in FOP Trunk.

Thanks for the effort!
I can verify that it work's when using the standalone fop processor (fop.bat).
Seems that I have a problem with my cocoon integration...
Comment 6 Glenn Adams 2012-04-01 14:39:32 UTC
transition (old) verified bugs to closed