diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/boost/tools/quickbook/test/code-1_1.gold | |
parent | Initial commit. (diff) | |
download | ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.tar.xz ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/boost/tools/quickbook/test/code-1_1.gold | 52 | ||||
-rw-r--r-- | src/boost/tools/quickbook/test/code-1_1.gold-html | 91 |
2 files changed, 143 insertions, 0 deletions
diff --git a/src/boost/tools/quickbook/test/code-1_1.gold b/src/boost/tools/quickbook/test/code-1_1.gold new file mode 100644 index 000000000..d7382593b --- /dev/null +++ b/src/boost/tools/quickbook/test/code-1_1.gold @@ -0,0 +1,52 @@ +<?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="code_block" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $" xmlns:xi="http://www.w3.org/2001/XInclude"> + <title>Code Block</title> + <section id="code_block.test_1"> + <title>Test 1</title> + <para> + A code block with proper indentation ;-) + </para> +<programlisting><phrase role="preprocessor">#include</phrase> <phrase role="special"><</phrase><phrase role="identifier">iostream</phrase><phrase role="special">></phrase> + +<phrase role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase role="special">()</phrase> +<phrase role="special">{</phrase> + <phrase role="identifier">std</phrase><phrase role="special">::</phrase><phrase role="identifier">cout</phrase> <phrase role="special"><<</phrase> <phrase role="string">"Hello, World!"</phrase> <phrase role="special"><<</phrase> <phrase role="identifier">std</phrase><phrase role="special">::</phrase><phrase role="identifier">endl</phrase><phrase role="special">;</phrase> + <phrase role="keyword">return</phrase> <phrase role="number">0</phrase><phrase role="special">;</phrase> +<phrase role="special">}</phrase> +</programlisting> + </section> + <section id="code_block.test_2"> + <title>Test 2</title> + <para> + A code block with proper indentation ;-) + </para> + <para> +<programlisting><phrase role="preprocessor">#include</phrase> <phrase role="special"><</phrase><phrase role="identifier">iostream</phrase><phrase role="special">></phrase> + +<phrase role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase role="special">()</phrase> +<phrase role="special">{</phrase> + <phrase role="identifier">std</phrase><phrase role="special">::</phrase><phrase role="identifier">cout</phrase> <phrase role="special"><<</phrase> <phrase role="string">"Hello, World!"</phrase> <phrase role="special"><<</phrase> <phrase role="identifier">std</phrase><phrase role="special">::</phrase><phrase role="identifier">endl</phrase><phrase role="special">;</phrase> + <phrase role="keyword">return</phrase> <phrase role="number">0</phrase><phrase role="special">;</phrase> +<phrase role="special">}</phrase> +</programlisting> + </para> + </section> + <section id="code_block.test_3"> + <title>Test 3</title> + <para> +<programlisting><phrase role="keyword">print</phrase> <phrase role="string">"\xfabln\xeck"</phrase> +</programlisting> + </para> + </section> + <section id="code_block.test_4"> + <title>Test 4</title> + <para> + This isn't valid C++ but I think we should accept it; + </para> + <para> +<programlisting><phrase role="identifier">std</phrase><phrase role="special">::</phrase><phrase role="identifier">cout</phrase><phrase role="special"><<</phrase><phrase role="string">"\xfabln\xeck"</phrase><phrase role="special"><<</phrase><phrase role="string">"\n"</phrase><phrase role="special">;</phrase> +</programlisting> + </para> + </section> +</article> diff --git a/src/boost/tools/quickbook/test/code-1_1.gold-html b/src/boost/tools/quickbook/test/code-1_1.gold-html new file mode 100644 index 000000000..3c676ecc2 --- /dev/null +++ b/src/boost/tools/quickbook/test/code-1_1.gold-html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head></head> + <body> + <h3> + Code Block + </h3> + <div class="toc"> + <p> + <b>Table of contents</b> + </p> + <ul> + <li> + <a href="#code_block.test_1">Test 1</a> + </li> + <li> + <a href="#code_block.test_2">Test 2</a> + </li> + <li> + <a href="#code_block.test_3">Test 3</a> + </li> + <li> + <a href="#code_block.test_4">Test 4</a> + </li> + </ul> + </div> + <div id="code_block.test_1"> + <h3> + Test 1 + </h3> + <div id="code_block.test_1"> + <p> + A code block with proper indentation ;-) + </p> +<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span> + +<span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span> +<span class="special">{</span> + <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Hello, World!"</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> + <span class="keyword">return</span> <span class="number">0</span><span class="special">;</span> +<span class="special">}</span> +</pre> + </div> + </div> + <div id="code_block.test_2"> + <h3> + Test 2 + </h3> + <div id="code_block.test_2"> + <p> + A code block with proper indentation ;-) + </p> + <p> +<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span> + +<span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span> +<span class="special">{</span> + <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Hello, World!"</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> + <span class="keyword">return</span> <span class="number">0</span><span class="special">;</span> +<span class="special">}</span> +</pre> + </p> + </div> + </div> + <div id="code_block.test_3"> + <h3> + Test 3 + </h3> + <div id="code_block.test_3"> + <p> +<pre class="programlisting"><span class="keyword">print</span> <span class="string">"\xfabln\xeck"</span> +</pre> + </p> + </div> + </div> + <div id="code_block.test_4"> + <h3> + Test 4 + </h3> + <div id="code_block.test_4"> + <p> + This isn't valid C++ but I think we should accept it; + </p> + <p> +<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span><span class="special"><<</span><span class="string">"\xfabln\xeck"</span><span class="special"><<</span><span class="string">"\n"</span><span class="special">;</span> +</pre> + </p> + </div> + </div> + </body> +</html> |