<?xml version="1.0" encoding="US-ASCII"?>
<!--dlist2.fo-->
<root xmlns="http://www.w3.org/1999/XSL/Format" font-family="Times" font-size="18pt">

	<layout-master-set>
		<simple-page-master master-name="frame" page-height="297mm" page-width="210mm" 
		     margin-top="5mm" margin-bottom="15mm" margin-left="15mm" margin-right="15mm">
			<region-body region-name="frame-body" />
		</simple-page-master>
	</layout-master-set>

	<page-sequence master-reference="frame">
		<flow flow-name="frame-body">

			<block linefeed-treatment="preserve">
			Normal case: short left text, short right text
			left text is left-aligned, right text is right-aligned
			</block>
			<block end-indent="10cm">
				<block text-align-last="justify" background-color="silver">
					<inline>Michael Sulyaev</inline>
					<leader leader-pattern="dots"/>
					<inline>12345</inline>
				</block>
			</block>

			<block linefeed-treatment="preserve">
			Second case: long left text, short right text
			</block>
			<block end-indent="10cm">
				<block text-align-last="justify" background-color="red">
					<inline>Michael Sulyaev and Fritz</inline>
					<leader leader-pattern="dots"/>
					<inline>12345</inline>
				</block>
			</block>
			
			<block linefeed-treatment="preserve">
			Second case (Trial): long left text, short right text
            right text and leader is grouped by &lt;inline&gt;
			</block>
			<block end-indent="10cm">
				<block text-align-last="justify" background-color="red">
					<inline>Michael Sulyaev and Fritz</inline>
					<inline>
					   <leader leader-pattern="dots"/>
					   <inline>12345</inline>
					</inline>
				</block>
			</block>
            
			<block linefeed-treatment="preserve">
			Second case (Best): long left text, short right text
            right text and leader is grouped with 
			&lt;inline keep-together.within-line="always"&gt;
			</block>
			<block end-indent="10cm">
    			<block text-align-last="justify" background-color="silver">
					<inline>Michael Sulyaev and Fritz</inline>
					<inline keep-together.within-line="always">
					   <leader leader-pattern="dots"/>
					   <inline>12345</inline>
					</inline>
				</block>
			</block>

			<block linefeed-treatment="preserve">
			Third case: very long left text with automatic linebreak, 
			short right text, 
            </block>
			<block end-indent="10cm">
    			<block text-align-last="justify" background-color="silver">
					<inline>Michael Sulyaev and Friedrich Kirch</inline>
					<inline keep-together.within-line="always">
					   <leader leader-pattern="dots"/>
					   <inline>12345</inline>
					</inline>
				</block>
			</block>

			<block linefeed-treatment="preserve">
			Third case: very long left text with CRLF, short right text
			What I want is:
            Michael Sulyaev and 
		    Friedrich Kirch ...............12345
            </block>
			<block>But what I get is</block>
			<block end-indent="10cm">
    			<block text-align-last="justify" linefeed-treatment="preserve" background-color="red">Michael Sulyaev and 
					Friedrich Kirch<inline keep-together.within-line="always"><leader leader-pattern="dots"/><inline>12345</inline>					</inline>
				</block>
			</block>

		</flow>
	</page-sequence>
</root>
