diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /src/boost/tools/quickbook/test/code-1_1.quickbook | |
parent | Initial commit. (diff) | |
download | ceph-upstream/18.2.2.tar.xz ceph-upstream/18.2.2.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/boost/tools/quickbook/test/code-1_1.quickbook | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/boost/tools/quickbook/test/code-1_1.quickbook b/src/boost/tools/quickbook/test/code-1_1.quickbook new file mode 100644 index 000000000..8c800911a --- /dev/null +++ b/src/boost/tools/quickbook/test/code-1_1.quickbook @@ -0,0 +1,51 @@ +[article Code Block] + +[section Test 1] + +A code block with proper indentation ;-) + + #include <iostream> + + int main() + { + std::cout << "Hello, World!" << std::endl; + return 0; + } + +[endsect] + +[section Test 2] + +A code block with proper indentation ;-) + +`` + #include <iostream> + + int main() + { + std::cout << "Hello, World!" << std::endl; + return 0; + } +`` + +[endsect] + +[section Test 3] + +[python] +`` + print "\xfabln\xeck" +`` + +[endsect] + +[section Test 4] + +This isn't valid C++ but I think we should accept it; + +[c++] +`` + std::cout<<"\xfabln\xeck"<<"\n"; +`` + +[endsect] |