Forum Bugs

Layout bug?

jablko
When I process this input with Prince, http://www.sfu.ca/~jdbates/tmp/css/201006160/

- the generated PDF is missing the large quote (") character at the beginning of the <blockquote/>

Here's Prince' output, http://www.sfu.ca/~jdbates/tmp/css/201006160/index.pdf

I'm happy to help further narrow down this problem - just wondering if you already have some insight why it's happening?
mikeday
Odd, as it seems to work for me. Which version of Prince are you using? Do you get any error or warning messages?
jablko
I tried Prince 7.0 and 7.1, with identical results

The 7.1 version is prince-7.1-ubuntu904-amd64-dynamic

It's running on Debian/Ubuntu

Prince does print some errors when I process the URL,

$ prince-7.1-ubuntu904-amd64-dynamic//lib/prince/bin/prince http://www.sfu.ca/~jdbates/tmp/css/201006160/ index.pdf
prince: http://www.sfu.ca/~jdbates/tmp/css/201006160/:15: error: Tag section invalid
prince: http://www.sfu.ca/~jdbates/tmp/css/201006160/:16: error: ID Reference_code already defined
prince: http://www.sfu.ca/~jdbates/tmp/css/201006160/:35: error: Tag section invalid
prince: http://www.sfu.ca/~jdbates/tmp/css/201006160/:36: error: ID Title already defined
$

- however none when I process the file on my local file system,

$ prince-7.1-ubuntu904-amd64-dynamic//lib/prince/bin/prince index.html
$
mikeday
The difference in error messages are because it the file is being served over HTTP as "text/html", so Prince is parsing it as HTML, whereas when accessed as a local file Prince concludes that it is XHTML due to the DOCTYPE and parses it as XML, resulting in slightly different behaviour.

However, this is unrelated to the error, which I cannot replicate regardless of how I access the page. Honestly, I can't see why this isn't working. Here is a really slimmed down test document:
<html>
<head>
<link href="http://qubit-toolkit.org/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<blockquote>
<p>Provide either a formal title or a concise supplied title in accordance with the rules of multilevel description and national conventions.</p>
</blockquote>
</body>
</html>

Do you see the double quote appearing behind the blockquote when you convert this document?
jablko
Thanks Mike - yes! When I convert that document the double quote *does* appear behind the <blockquote/>

However if I add style="text-align: justify;" to the <body/> of that document, then the double quote disappears:

http://www.sfu.ca/~jdbates/tmp/css/201006180/

http://www.sfu.ca/~jdbates/tmp/css/201006180/index.pdf
mikeday
Thanks, I think I see the problem now, there is a bug in Prince 7.1 that affects some positioned blocks inside justified paragraphs, making the image disappear. We have fixed this issue for the next release. In the meantime, a workaround would be to specify "text-align: left" on the blockquote element and then "text-align: justify" on the paragraph inside it. Sorry for the inconvenience!
jablko
No sweat - thanks Mike!
mikeday
Prince 8.0 beta is out now, and includes the fix for this bug.