[Boost-docs] Fixing PDF code blocks in quickbook.

Subject: [Boost-docs] Fixing PDF code blocks in quickbook.
From: John Maddock (john_at_[hidden])
Date: 2007-12-05 19:34:13

And here's a simpler patch that stops code blocks in PDF output from
starting with a blank line:

Index: detail/actions.cpp
--- detail/actions.cpp (revision 41684)
+++ detail/actions.cpp (working copy)
@@ -324,7 +325,11 @@

- out << "<programlisting>\n";
+ //
+ // We must not place a \n after the <programlisting> tag
+ // otherwise PDF output starts code blocks with a blank line:
+ //
+ out << "<programlisting>";
         out << str;
         out << "</programlisting>\n";

Unfortunately, this change causes quite a few of the quickbook tests to fail

However, as far as I can tell from testing this, it makes no difference at
all to (X)HTML output, but does fix the PDF display issue: see attached for
before and after PDF's.

Regards, John.

This archive was generated by hypermail 2.1.7 : 2017-11-11 08:50:40 UTC