ASF Bugzilla – Attachment 26807 Details for
Bug 44328
[PATCH] orphans/widows not respected in some cases
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
updated test, showing additional issue
block_orphans_widows.fo (text/plain), 8.99 KB, created by
Andreas L. Delmelle
on 2011-03-28 16:52:00 UTC
(
hide
)
Description:
updated test, showing additional issue
Filename:
MIME Type:
Creator:
Andreas L. Delmelle
Created:
2011-03-28 16:52:00 UTC
Size:
8.99 KB
patch
obsolete
><?xml version="1.0" encoding="UTF-8"?> ><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> > <fo:layout-master-set> > <fo:simple-page-master master-name="normal" page-width="3in" page-height="2in"> > <fo:region-body /> > </fo:simple-page-master> > </fo:layout-master-set> > <fo:page-sequence master-reference="normal"> > <fo:flow flow-name="xsl-region-body"> > <fo:block id="block-1"> > <!-- Basic test: simple paragraph generating 11 lines. > 2 last lines should be kept together due to initial > value for widows > --> > Lorem ipsum dolor sit amet, consectetur > adipiscing elit. Cras placerat, lectus vel > iaculis euismod, ipsum enim dapibus > urna, eu pellentesque velit dolor ac > purus. Maecenas vitae pulvinar turpis. > Duis venenatis tincidunt velit, fringilla > dignissim sapien faucibus vel. Quisque > placerat ornare consectetur. Aenean > dui tortor, tempor ut convallis in, > fermentum tempor nunc. Class aptent > taciti sociosqu ad litora torquent per > </fo:block> > <fo:block id="block-2" break-before="page"> > <!-- Basic test: simple paragraph generating 11 lines, followed by > another block. > A break between lines 10 and 11 is allowed. > --> > Lorem ipsum dolor sit amet, consectetur > adipiscing elit. Cras placerat, lectus vel > iaculis euismod, ipsum enim dapibus > urna, eu pellentesque velit dolor ac > purus. Maecenas vitae pulvinar turpis. > Duis venenatis tincidunt velit, fringilla > dignissim sapien faucibus vel. Quisque > placerat ornare consectetur. Aenean > dui tortor, tempor ut convallis in, > fermentum tempor nunc. Class aptent > taciti sociosqu ad litora torquent per > <fo:block> > Lorem ipsum dolor sit amet, consectetur > adipiscing elit. Cras placerat, lectus vel > iaculis euismod, ipsum enim dapibus > urna, eu pellentesque velit dolor ac > </fo:block> > </fo:block> > <fo:block id="block-3" break-before="page"> > <!-- Basic test: 1 paragraph with 9 lines and 1 with 4. > All 4 lines of the second paragraph should be kept > together due to initial value for orphans. > --> > <fo:block> > Lorem ipsum dolor sit amet, consectetur > adipiscing elit. Cras placerat, lectus vel > iaculis euismod, ipsum enim dapibus > urna, eu pellentesque velit dolor ac > purus. Maecenas vitae pulvinar turpis. > Duis venenatis tincidunt velit, fringilla > dignissim sapien faucibus vel. Quisque > placerat ornare consectetur. Aenean > dui tortor, tempor ut convallis in, > </fo:block> > <fo:block> > Lorem ipsum dolor sit amet, consectetur > adipiscing elit. Cras placerat, lectus vel > iaculis euismod, ipsum enim dapibus > urna, eu pellentesque velit dolor ac > </fo:block> > </fo:block> > <fo:block id="block-4" break-before="page"> > <!-- Basic test: 1 block with 9 lines and 1 paragraph with 4 lines. > A break after the first line of the second paragraph is allowed. > --> > <fo:block> > Lorem ipsum dolor sit amet, consectetur > adipiscing elit. Cras placerat, lectus vel > iaculis euismod, ipsum enim dapibus > urna, eu pellentesque velit dolor ac > purus. Maecenas vitae pulvinar turpis. > Duis venenatis tincidunt velit, fringilla > dignissim sapien faucibus vel. Quisque > placerat ornare consectetur. Aenean > dui tortor, tempor ut convallis in, > </fo:block> > Lorem ipsum dolor sit amet, consectetur > adipiscing elit. Cras placerat, lectus vel > iaculis euismod, ipsum enim dapibus > urna, eu pellentesque velit dolor ac > </fo:block> > <fo:block id="block-5" break-before="page"> > <!-- Basic test: 1 paragraph consisting of 11 single-line subparagraphs. > Last 2 lines of the main paragraph should be kept together due to > initial value for widows. > --> > <fo:block> > <fo:block>Lorem ipsum</fo:block> > <fo:block>Lorem ipsum</fo:block> > <fo:block>Lorem ipsum</fo:block> > <fo:block>Lorem ipsum</fo:block> > <fo:block>Lorem ipsum</fo:block> > <fo:block>Lorem ipsum</fo:block> > <fo:block>Lorem ipsum</fo:block> > <fo:block>Lorem ipsum</fo:block> > <fo:block>Lorem ipsum</fo:block> > <fo:block>Lorem ipsum</fo:block> > <fo:block>Lorem ipsum</fo:block> > </fo:block> > </fo:block> > <fo:block id="block-6" break-before="page"> > <!-- Basic test: 1 regular paragraph of 9 lines followed by 1 consisting > of 4 single-line subparagraphs. > All 4 lines of the second paragraph should be kept together due > to initial value for orphans. > --> > <fo:block> > Lorem ipsum dolor sit amet, consectetur > adipiscing elit. Cras placerat, lectus vel > iaculis euismod, ipsum enim dapibus > urna, eu pellentesque velit dolor ac > purus. Maecenas vitae pulvinar turpis. > Duis venenatis tincidunt velit, fringilla > dignissim sapien faucibus vel. Quisque > placerat ornare consectetur. Aenean > dui tortor, tempor ut convallis in, > </fo:block> > <fo:block> > <fo:block>Lorem ipsum</fo:block> > <fo:block>Lorem ipsum</fo:block> > <fo:block>Lorem ipsum</fo:block> > <fo:block>Lorem ipsum</fo:block> > </fo:block> > </fo:block> > <fo:block id="block-7" break-before="page"> > <!-- Special case: 1 paragraph with 10 lines, and 1 with 1. > Last 2 lines of the first paragraph should be kept > together with the only line of the second due to initial > value of widows on the outer block. > --> > <fo:block> > Lorem ipsum dolor sit amet, consectetur > adipiscing elit. Cras placerat, lectus vel > iaculis euismod, ipsum enim dapibus > urna, eu pellentesque velit dolor ac > purus. Maecenas vitae pulvinar turpis. > Duis venenatis tincidunt velit, fringilla > dignissim sapien faucibus vel. Quisque > placerat ornare consectetur. Aenean > dui tortor, tempor ut convallis in, > fermentum tempor nunc. Class aptent > </fo:block> > <fo:block>Lorem ipsum</fo:block> > </fo:block> > <fo:block id="block-8" break-before="page"> > <!-- Special case: linefeed-treatment="preserve" (see Bugzilla 44328) --> > <fo:block linefeed-treatment="preserve">Lorem ipsum > dolor sit amet, > consectetur > adipiscing elit. > Cras placerat, > lectus vel > iaculis euismod, > ipsum enim > dapibus urna, > eu pellentesque > velit dolor</fo:block> > </fo:block> > <fo:block id="block-9" break-before="page"> > <!-- Special case: linefeed-treatment="preserve" (see Bugzilla 44328) --> > <fo:block> > Lorem ipsum dolor sit amet, consectetur > adipiscing elit. Cras placerat, lectus vel > iaculis euismod, ipsum enim dapibus > urna, eu pellentesque velit dolor ac > purus. Maecenas vitae pulvinar turpis. > Duis venenatis tincidunt velit, fringilla > dignissim sapien faucibus vel. Quisque > placerat ornare consectetur. Aenean > dui tortor, tempor ut convallis in, > </fo:block> > <fo:block linefeed-treatment="preserve">Lorem ipsum > dolor sit amet, > consectetur > velit dolor</fo:block> > </fo:block> > <fo:block id="block-10" break-before="page"> > <!-- Last but not least, demonstrate peculiar side-effect in case > of convoluted nesting... > All 10 last lines are moved to the next page due to stacked > widows constraints > --> > <fo:block orphans="1">Lorem ipsum > <fo:block> > <fo:block> > <fo:block> > <fo:block> > <fo:block> > <fo:block> > <fo:block> > <fo:block> > <fo:block> > <fo:block> > Lorem ipsum > </fo:block> > Lorem ipsum > </fo:block> > Lorem ipsum > </fo:block> > Lorem ipsum > </fo:block> > Lorem ipsum > </fo:block> > Lorem ipsum > </fo:block> > Lorem ipsum > </fo:block> > Lorem ipsum > </fo:block> > Lorem ipsum > </fo:block> > Lorem ipsum > </fo:block> > </fo:block> > </fo:block> > </fo:flow> > </fo:page-sequence> ></fo:root>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 44328
:
21452
|
26800
|
26801
|
26807
|
26813
|
26820
|
26842
|
26843
|
26845
|
26846
|
26851
|
26852
|
27055
|
27066