From 272dc977308205e0b5e2b3130937077420c9c16b Mon Sep 17 00:00:00 2001 From: KangWon LEE Date: Sun, 4 Aug 2019 01:20:25 +0900 Subject: [PATCH] line breaks in c++ code (cont) --- test_build_markdown_cpp_cell.py | 42 ++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/test_build_markdown_cpp_cell.py b/test_build_markdown_cpp_cell.py index 14fb95bb..126c9fb4 100644 --- a/test_build_markdown_cpp_cell.py +++ b/test_build_markdown_cpp_cell.py @@ -196,7 +196,47 @@ '\n' '```')}, {'result': 0, 'cpp_filename': 'account_module.h'}], -[{'cell_type': 'markdown', 'metadata': {}, 'source': '```C++\n// Begin account_module_user.cpp\n#include \n#include \n\nnamespace account_a{\n #include "account_module.h"\n}\n\nnamespace account_b{\n #include "account_module.h"\n}\n\nusing namespace std;\n\nint32_t main(int32_t argn, char ** argv){\n\n cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n\n account_a::deposit(10000);\n\n cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n\n account_a::withdraw(3000);\n\n cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n\n account_b::deposit(5000);\n\n cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n\n return 0;\n}\n// End account_module_user.cpp\n```'}, +[{'cell_type': 'markdown', 'metadata': {}, 'source': ( + '```C++\n' + '// Begin account_module_user.cpp\n' + '#include \n' + '#include \n' + '\n' + 'namespace account_a{\n' + ' #include "account_module.h"\n' + '}\n' + '\n' + 'namespace account_b{\n' + ' #include "account_module.h"\n' + '}\n' + '\n' + 'using namespace std;\n' + '\n' + 'int32_t main(int32_t argn, char ** argv){\n' + '\n' + ' cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n' + ' cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n' + '\n' + ' account_a::deposit(10000);\n' + '\n' + ' cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n' + ' cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n' + '\n' + ' account_a::withdraw(3000);\n' + '\n' + ' cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n' + ' cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n' + '\n' + ' account_b::deposit(5000);\n' + '\n' + ' cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n' + ' cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n' + '\n' + ' return 0;\n' + '}\n' + '// End account_module_user.cpp\n' + '```' + )}, {'result': 0, 'cpp_filename': 'account_module_user.cpp'}], ]