doc: Correctly render --DOC_NO_USAGE + --DOC_GEN_OUTPUT.

It was previously merged into a single block.
This commit is contained in:
Emmanuel Lepage Vallee 2021-09-14 15:41:43 -07:00
parent 1ff860454e
commit 4a0645e942
1 changed files with 6 additions and 0 deletions

View File

@ -258,6 +258,12 @@ function(run_test test_path namespace escaped_content)
"\n${expected_output}"
"${TEST_DOC_CONTENT}" TEST_DOC_CONTENT " "
)
# Add a <br/> to prevent markdown from merging the usage and output
# into a single block.
if(tmp_content MATCHES "--DOC_NO_USAGE")
set(TEST_DOC_CONTENT "${TEST_DOC_CONTENT}\n${DOC_LINE_PREFIX} **Usage example:**")
endif()
else()
escape_string(
"\n${expected_output}"