diff options
author | Martin Smith <martin.smith@qt.io> | 2019-04-11 13:49:47 +0200 |
---|---|---|
committer | Martin Smith <martin.smith@qt.io> | 2019-04-26 10:38:29 +0000 |
commit | 7203e6a94ced619eadbc14aedf73d40530671662 (patch) | |
tree | ec82ca9ed8bfe55751438a29bd272ac5e60bdbaa /tests | |
parent | 4399a1683a016794e22ecdd03eafca07b93af4e2 (diff) |
qdoc: Avoid generating invalid html
The test qdoc file and qdocconf file provided with QTBUG-74903 gets qdoc
to generate the html file shown below. The line "<li>Test Guide</li>" is
invalid html. It is meant to be part of the navigation bar. This update
prevents the generation of that line, when the navigationbar Text object
is empty when the invalid line is about to be added.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- test.qdoc -->
<title>Test Guide | Testing</title>
</head>
<body>
<li>Test Guide</li>
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<much of html file deleted>
</body>
</html>
The test input html file actually contained an invalid line that
qdoc generated erroneously. This update just removes that invalid
line.
Task-number: QTBUG-74903
Change-Id: I9e8d742676ac8c7c536c73c8f5b98d27aafbd3c7
Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qdoc/qdocfileoutput/expected_output/qdoctests-qdocfileoutput.html | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/qdoc/qdocfileoutput/expected_output/qdoctests-qdocfileoutput.html b/tests/auto/qdoc/qdocfileoutput/expected_output/qdoctests-qdocfileoutput.html index ea9946d6b..199d63ef1 100644 --- a/tests/auto/qdoc/qdocfileoutput/expected_output/qdoctests-qdocfileoutput.html +++ b/tests/auto/qdoc/qdocfileoutput/expected_output/qdoctests-qdocfileoutput.html @@ -7,7 +7,6 @@ <title>Testing QDoc output from .qdoc files | Test</title> </head> <body> -<li>Testing QDoc output from .qdoc files</li> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> |