OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Strange paragraph justification issue


Hi all,

I have an interesting problem. I've got a couple of para elements, one that contains a long example HTML tag:

<para>&lt;img width="300" height="200" src="" href="http://img.example.com/ggbridge.jpg">http://img.example.com/ggbridge.jpg<emphasis role="bold">?i10c=img.resize(width:300,height:200)</emphasis>"&gt;</para>
 
and another with a similarly long URL

<para>http://img.example.com/ggbridge.jpg<emphasis role="bold">?i10c=img.crop(width:1000,height:1000);img.resize(width:500,height:500)</emphasis></para>

For some mysterious reason, for the first of these, the first line of the rendered text to look really stupid in the PDF output. It's as if the line breaks at a reasonable place (the question mark that denotes the beginning of the query string), but then the line is justified at the left and the right, with big spaces between each "word" – though the second line is left-aligned as normal. Something like this:

<img      width="300"     height="200"     src="" href="http://img.example.com/ggbridge.jpg">http://img.example.com/ggbridge.jpg   ?
i10c=img.resize(width:300,height:200) " />

However, the second example renders just fine. Breaks at the question mark, both lines are left-aligned.

That suggested to me that perhaps the presence of the entities in the string might be causing this to happen. But if remove them as an experiment, it still breaks badly. If I chop out some text so that it's short enough to fit in one line, it left aligns just fine.

I was able to work around this by adding a linebreak processing instruction as described in the Book, but I was mystified and wondered if anyone else has seen this.

Thanks!



I tried using


--
Regards,
Alan

Instart Logic 

Alan C. Oehler
Senior Technical Writer

Phone: 650-919-8856 | Email: aoehler@instartlogic.com 
Instart Logic | 450 Lambert Ave, Palo Alto, CA 94306 | instartlogic.com



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]