Bug 42043 - white-space-collapse="false" linefeed-treatment="preserve" does not preserve initial spaces.
Summary: white-space-collapse="false" linefeed-treatment="preserve" does not preserve ...
Status: CLOSED INVALID
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: all
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-04 02:04 UTC by Richard Wheeldon
Modified: 2012-04-01 13:49 UTC (History)
0 users



Attachments
FO file demonstrating the problem. (1.72 KB, application/octet-stream)
2007-04-04 02:05 UTC, Richard Wheeldon
Details
Doc update pointing to additional required attribute. (1.24 KB, patch)
2007-04-04 04:08 UTC, Richard Wheeldon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Wheeldon 2007-04-04 02:04:59 UTC
Using white-space-collapse="false" and linefeed-treatment="preserve" for
pre-formatted text does not work when spaces are present at the beginning of
lines. For example:

<fo:b w-s-p="f" l-t="p">Hello</fo:b> is fine.
<fo:b w-s-p="f" l-t="p">     Hello</fo:b> produces the same as the above.

Tested against trunk using awt and pdf.
Comment 1 Richard Wheeldon 2007-04-04 02:05:53 UTC
Created attachment 19911 [details]
FO file demonstrating the problem.
Comment 2 Manuel Mall 2007-04-04 02:13:05 UTC
You need to set white-space-treament="preserve" as well otherwise white space at
the beginning and the end of blocks is removed.
Comment 3 Richard Wheeldon 2007-04-04 04:08:32 UTC
Created attachment 19913 [details]
Doc update pointing to additional required attribute.
Comment 4 Glenn Adams 2012-04-01 13:49:01 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs