summaryrefslogtreecommitdiff
path: root/tests/auto/qdoc
diff options
context:
space:
mode:
authorThibaut Cuvelier <cuvelier.thibaut@gmail.com>2022-08-05 10:50:36 +0200
committerPaul Wicking <paul.wicking@qt.io>2022-11-09 21:42:04 +0100
commitf9fa9f16bda5154fc74add29dfed0a118349d622 (patch)
treea6c32622401576bc04ad44ec0d7bb98211647514 /tests/auto/qdoc
parent29c9657220eb14e60ca0150775a89a5981862b74 (diff)
downloadqttools-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')
-rw-r--r--tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocfileoutput-exhaustive.xml2
-rw-r--r--tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocmanuallikefileoutput.xml42
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>
- &lt;html&gt;&lt;body&gt;This is &lt;b&gt;raw&lt;/b&gt;. Like the &lt;h1&gt;Eddie Murphy&lt;/h1&gt; movie. Just not as funny.&lt;/body&gt;&lt;/html&gt;
+ <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> &lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;5&quot; width=&quot;100%&quot;&gt;
+<db:blockquote <table border="0" cellpadding="0" cellspacing="5" width="100%">
- &lt;tr&gt;
- &lt;p&gt;
- [Previous: &lt;a href=&quot;15-qdoc-commands-navigation.html#deadlink&quot;&gt;
- Basic Qt&lt;/a&gt;]
- [&lt;a href=&quot;15-qdoc-commands-navigation.html#deadlink&quot;&gt;Contents&lt;/a&gt;]
- [Next: &lt;a href=&quot;15-qdoc-commands-navigation.html#deadlink&quot;&gt;
- Creating Dialogs&lt;/a&gt;]
- &lt;/p&gt;
+ <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>
- &lt;h1 align=&quot;center&quot;&gt;Getting Started&lt;br /&gt;&lt;/h1&gt;
+ <h1 align="center">Getting Started<br /></h1>
- &lt;p&gt;
+ <p>
This chapter shows how to combine basic C++ with the
functionality provided by Qt to create a few small graphical
interface (GUI) applications.
- &lt;/p&gt;
+ </p>
- &lt;p&gt;
- [Previous: &lt;a href=&quot;15-qdoc-commands-navigation.html#deadlink&quot;&gt;
- Basic Qt&lt;/a&gt;]
- [&lt;a href=&quot;15-qdoc-commands-navigation.html#deadlink&quot;&gt;Contents&lt;/a&gt;]
- [Next: &lt;a href=&quot;15-qdoc-commands-navigation.html#deadlink&quot;&gt;
- Creating Dialogs&lt;/a&gt;]
- &lt;/p&gt;
+ <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>
- &lt;/table&gt;
- </db:blockquote>
+ </table>
+ />
<db:programlisting language="cpp">&amp;lt;head&amp;gt;
...
&amp;lt;link rel=&amp;quot;start&amp;quot; href=&amp;quot;basicqt.html&amp;quot; /&amp;gt;