diff options
author | Thibaut Cuvelier <cuvelier.thibaut@gmail.com> | 2022-08-05 10:50:36 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2022-11-09 21:42:04 +0100 |
commit | f9fa9f16bda5154fc74add29dfed0a118349d622 (patch) | |
tree | a6c32622401576bc04ad44ec0d7bb98211647514 /tests/auto/qdoc | |
parent | 29c9657220eb14e60ca0150775a89a5981862b74 (diff) | |
download | qttools-f9fa9f16bda5154fc74add29dfed0a118349d622.tar.gz |
QDoc: Output sensible DocBook for raw strings
- CSS declarations.
- Exponents.
- Don't escape RawString that are not recognized:
they might correspond to DocBook variants of custom macros.
Having dedicated code for this transformation helps qdoc work with
outdated clones of Qt repos and previous versions of Qt. This is an
important use case for me. Also, this could be important for other
qdoc users until the macro changes in many Qt Git repos are merged.
(The same comment remains valid for the other Atom::RawString changes.)
Change-Id: I8ef8520486390f5ba3d09508fe8e38355cf10b3f
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'tests/auto/qdoc')
2 files changed, 22 insertions, 22 deletions
diff --git a/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocfileoutput-exhaustive.xml b/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocfileoutput-exhaustive.xml index 0f8de4e92..71e8b4a83 100644 --- a/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocfileoutput-exhaustive.xml +++ b/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocfileoutput-exhaustive.xml @@ -28,7 +28,7 @@ <db:para>Lorem legal ipsum</db:para> <db:blockquote><db:para>This is a quotation.</db:para> </db:blockquote> - <html><body>This is <b>raw</b>. Like the <h1>Eddie Murphy</h1> movie. Just not as funny.</body></html> + <html><body>This is <b>raw</b>. Like the <h1>Eddie Murphy</h1> movie. Just not as funny.</body></html> <db:sidebar><db:para>Look, ma! I made a sidebar!</db:para> </db:sidebar> <db:informaltable style="generic"> diff --git a/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocmanuallikefileoutput.xml b/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocmanuallikefileoutput.xml index 5840f137d..b8aedf385 100644 --- a/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocmanuallikefileoutput.xml +++ b/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocmanuallikefileoutput.xml @@ -9,35 +9,35 @@ <db:para>A test project for QDoc build artifacts.</db:para></db:abstract> </db:info> <db:para>The navigation commands...</db:para> -<db:blockquote> <table border="0" cellpadding="0" cellspacing="5" width="100%"> +<db:blockquote <table border="0" cellpadding="0" cellspacing="5" width="100%"> - <tr> - <p> - [Previous: <a href="15-qdoc-commands-navigation.html#deadlink"> - Basic Qt</a>] - [<a href="15-qdoc-commands-navigation.html#deadlink">Contents</a>] - [Next: <a href="15-qdoc-commands-navigation.html#deadlink"> - Creating Dialogs</a>] - </p> + <tr> + <p> + [Previous: <a href="15-qdoc-commands-navigation.html#deadlink"> + Basic Qt</a>] + [<a href="15-qdoc-commands-navigation.html#deadlink">Contents</a>] + [Next: <a href="15-qdoc-commands-navigation.html#deadlink"> + Creating Dialogs</a>] + </p> - <h1 align="center">Getting Started<br /></h1> + <h1 align="center">Getting Started<br /></h1> - <p> + <p> This chapter shows how to combine basic C++ with the functionality provided by Qt to create a few small graphical interface (GUI) applications. - </p> + </p> - <p> - [Previous: <a href="15-qdoc-commands-navigation.html#deadlink"> - Basic Qt</a>] - [<a href="15-qdoc-commands-navigation.html#deadlink">Contents</a>] - [Next: <a href="15-qdoc-commands-navigation.html#deadlink"> - Creating Dialogs</a>] - </p> + <p> + [Previous: <a href="15-qdoc-commands-navigation.html#deadlink"> + Basic Qt</a>] + [<a href="15-qdoc-commands-navigation.html#deadlink">Contents</a>] + [Next: <a href="15-qdoc-commands-navigation.html#deadlink"> + Creating Dialogs</a>] + </p> - </table> - </db:blockquote> + </table> + /> <db:programlisting language="cpp">&lt;head&gt; ... &lt;link rel=&quot;start&quot; href=&quot;basicqt.html&quot; /&gt; |