Hi all,
I have an interesting problem. I've got a couple of para elements, one that contains a long example HTML tag:
<para><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>"></para>
and another with a similarly long URL
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
|
|