doc: Correctly render --DOC_NO_USAGE + --DOC_GEN_OUTPUT.
It was previously merged into a single block.
This commit is contained in:
parent
1ff860454e
commit
4a0645e942
|
@ -258,6 +258,12 @@ function(run_test test_path namespace escaped_content)
|
||||||
"\n${expected_output}"
|
"\n${expected_output}"
|
||||||
"${TEST_DOC_CONTENT}" TEST_DOC_CONTENT " "
|
"${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()
|
else()
|
||||||
escape_string(
|
escape_string(
|
||||||
"\n${expected_output}"
|
"\n${expected_output}"
|
||||||
|
|
Loading…
Reference in New Issue