Subject: Re: [Boost-docs] Quickbook - Spacing between text and code blocks
From: John Maddock (john_at_[hidden])
Date: 2007-08-17 09:31:02
Joel de Guzman wrote:
> Let's fix it. Could anyone point me to a page that exhibits the
> behavior?
Not really, but here's an observation:
If the generated XML produces code listing that look like this:
<programlisting>
<phrase role="preprocessor">#define</phrase> <phrase
role="identifier">BOOST_MATH_OVERFLOW_ERROR_POLICY</phrase> <phrase
role="identifier">ignore_error</phrase>
<phrase role="preprocessor">#define</phrase> <phrase
role="identifier">BOOST_MATH_DISCRETE_QUANTILE_POLICY</phrase> <phrase
role="identifier">real</phrase></programlisting>
Then PDF generation puts an extra blank line at the start of every code
block, where as if it's like this:
<programlisting><phrase role="preprocessor">#define</phrase> <phrase
role="identifier">BOOST_MATH_OVERFLOW_ERROR_POLICY</phrase> <phrase
role="identifier">ignore_error</phrase>
<phrase role="preprocessor">#define</phrase> <phrase
role="identifier">BOOST_MATH_DISCRETE_QUANTILE_POLICY</phrase> <phrase
role="identifier">real</phrase></programlisting>
Then Voila! no more blank line :-)
HTML generation seems not to care either way BTW.
Can quickbook be adjusted to fix this?
Thanks, John.
This archive was generated by hypermail 2.1.7 : 2017-11-11 08:50:40 UTC