quickbook/test/preformatted-1_1.gold
Daniel James 506310c682 Quickbook: Fix the preformatted parser for 1.6.
In the old parser, the `eol` never matched anything because the `space`
would gobble up any newlines, so I'm pretty sure the intent was to use
`blank` to remove any leading spaces. So do that in 1.6.

[SVN r75521]
2011-11-17 21:01:55 +00:00

41 lines
1.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
<article id="preformatted" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Preformatted</title>
<section id="preformatted.preformatted">
<title>Preformatted</title>
<para>
Here's the ubiquitous <emphasis>Hello World</emphasis> program in C++.
</para>
<programlisting>#include &lt;iostream&gt;
int main()
{
std::cout &lt;&lt; &quot;Hello, World!&quot; &lt;&lt; std::endl;
return 0;
}
</programlisting>
<para>
The code should appear as a single block of code in a monospaced font and with
no syntax highlighting. The fifth and sixth lines should appear indented to
the right, aligning under <code><phrase role="identifier">main</phrase></code>,
on line 3.
</para>
<para>
Here's a one line function definitition:
</para>
<programlisting>void something(); </programlisting>
<para>
.
</para>
<para>
And some indented code:
</para>
<programlisting>void go()
{
}
</programlisting>
</section>
</article>