From c1d40191c672dcf68d658b434085d3288bda97eb Mon Sep 17 00:00:00 2001 From: Venugopal Shivashankar Date: Wed, 16 Nov 2022 09:33:15 +0100 Subject: qdoc: Ignore rest of the line for \inlineimage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Inline images need not consider rest of the line as alt text, unless they are wrapped in a {}. Updated the qdoc manual to indicate that caption to an inline image must be wrapped in braces. Pick-to: 6.2 6.4 6.5 Done-with: Topi Reinio Change-Id: I2098e8da2e9139bc6c022f36aa8432913546e863 Reviewed-by: Topi Reiniö --- .../docbook/qdoctests-qdocfileoutput-exhaustive.xml | 13 +++++++++++++ .../html/qdoctests-qdocfileoutput-exhaustive.webxml | 4 ++++ .../qdoctests-qdocfileoutput-exhaustive.html | 4 ++++ .../qdoctests-qdocfileoutput-exhaustive.html | 4 ++++ tests/auto/qdoc/generatedoutput/testdata/images/01.png | Bin 0 -> 1142 bytes .../qdoctests-outputfromqdocfiles.qdoc | 12 ++++++++++++ 6 files changed, 37 insertions(+) create mode 100644 tests/auto/qdoc/generatedoutput/testdata/images/01.png (limited to 'tests') 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 3e3c440ac..8c2e3d93d 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 @@ -103,6 +103,19 @@ +An inline image: +The is a paragraph containing an + + + + inline image to test if qdoc handles them properly, without considering rest of the line as alt text for the image. +An inline image with alt text: +Here is another example of +No. 1 + + + + inline image with alternative text, which should be added as an attribute to the inline image. Commands not yet tested diff --git a/tests/auto/qdoc/generatedoutput/expected_output/html/qdoctests-qdocfileoutput-exhaustive.webxml b/tests/auto/qdoc/generatedoutput/expected_output/html/qdoctests-qdocfileoutput-exhaustive.webxml index f739796ff..561d139cf 100644 --- a/tests/auto/qdoc/generatedoutput/expected_output/html/qdoctests-qdocfileoutput-exhaustive.webxml +++ b/tests/auto/qdoc/generatedoutput/expected_output/html/qdoctests-qdocfileoutput-exhaustive.webxml @@ -74,6 +74,10 @@ A bordered image with a caption: Screenshot of the System Tray Icon + An inline image: + The is a paragraph containing an inline image to test if qdoc handles them properly, without considering rest of the line as alt text for the image. + An inline image with alt text: + Here is another example of inline image with alternative text, which should be added as an attribute to the inline image.
Commands not yet tested diff --git a/tests/auto/qdoc/generatedoutput/expected_output/qdoctests-qdocfileoutput-exhaustive.html b/tests/auto/qdoc/generatedoutput/expected_output/qdoctests-qdocfileoutput-exhaustive.html index 1d1f4d82a..69c729848 100644 --- a/tests/auto/qdoc/generatedoutput/expected_output/qdoctests-qdocfileoutput-exhaustive.html +++ b/tests/auto/qdoc/generatedoutput/expected_output/qdoctests-qdocfileoutput-exhaustive.html @@ -60,6 +60,10 @@

A bordered image:

A bordered image with a caption:

Screenshot of the System Tray Icon

+

An inline image:

+

The is a paragraph containing an inline image to test if qdoc handles them properly, without considering rest of the line as alt text for the image.

+

An inline image with alt text:

+

Here is another example of No. 1 inline image with alternative text, which should be added as an attribute to the inline image.

Commands not yet tested

Warning: The following commands have yet to be tested: footnote link sincelist header index topicref // or just don’t care, remove it inlineimage printline printto printuntil // what’s the difference between printto and printuntil??? quotefile quotefromfile skipline skipto skipuntil span snippet codeline overload sub sup tableofcontents tt uicontrol endmapref endomit underline unicode

diff --git a/tests/auto/qdoc/generatedoutput/expected_output/tocbreadcrumbs/qdoctests-qdocfileoutput-exhaustive.html b/tests/auto/qdoc/generatedoutput/expected_output/tocbreadcrumbs/qdoctests-qdocfileoutput-exhaustive.html index 3d0f323c8..3b140db49 100644 --- a/tests/auto/qdoc/generatedoutput/expected_output/tocbreadcrumbs/qdoctests-qdocfileoutput-exhaustive.html +++ b/tests/auto/qdoc/generatedoutput/expected_output/tocbreadcrumbs/qdoctests-qdocfileoutput-exhaustive.html @@ -69,6 +69,10 @@

A bordered image:

A bordered image with a caption:

Screenshot of the System Tray Icon

+

An inline image:

+

The is a paragraph containing an inline image to test if qdoc handles them properly, without considering rest of the line as alt text for the image.

+

An inline image with alt text:

+

Here is another example of No. 1 inline image with alternative text, which should be added as an attribute to the inline image.

Commands not yet tested

Warning: The following commands have yet to be tested: footnote link sincelist header index topicref // or just don’t care, remove it inlineimage printline printto printuntil // what’s the difference between printto and printuntil??? quotefile quotefromfile skipline skipto skipuntil span snippet codeline overload sub sup tableofcontents tt uicontrol endmapref endomit underline unicode

diff --git a/tests/auto/qdoc/generatedoutput/testdata/images/01.png b/tests/auto/qdoc/generatedoutput/testdata/images/01.png new file mode 100644 index 000000000..d73ab969b Binary files /dev/null and b/tests/auto/qdoc/generatedoutput/testdata/images/01.png differ diff --git a/tests/auto/qdoc/generatedoutput/testdata/outputfromqdocfiles/qdoctests-outputfromqdocfiles.qdoc b/tests/auto/qdoc/generatedoutput/testdata/outputfromqdocfiles/qdoctests-outputfromqdocfiles.qdoc index c4fbc7b76..99f23b722 100644 --- a/tests/auto/qdoc/generatedoutput/testdata/outputfromqdocfiles/qdoctests-outputfromqdocfiles.qdoc +++ b/tests/auto/qdoc/generatedoutput/testdata/outputfromqdocfiles/qdoctests-outputfromqdocfiles.qdoc @@ -183,6 +183,18 @@ \borderedimage leonardo-da-vinci.png \caption Screenshot of the System Tray Icon + An inline image: + + The is a paragraph containing an \inlineimage 01.png inline image to test + if qdoc handles them properly, without considering rest of the line as + alt text for the image. + + An inline image with alt text: + + Here is another example of \inlineimage 01.png {No. 1} inline image with + alternative text, which should be added as an attribute to the inline + image. + \section1 Commands not yet tested \warning The following commands have yet to be tested: -- cgit v1.2.1