summaryrefslogtreecommitdiffstats
path: root/src/htmldocvisitor.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-08-10 15:33:33 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-08-10 15:33:33 (GMT)
commit3f553a8e4266b24a67e5c7302ee81e1d5e648748 (patch)
tree37223ebb75231a61982f4b6bb5ae5dfd8120c468 /src/htmldocvisitor.cpp
parent0fb18c7e1b38ed78591cf129453c6c4718520624 (diff)
downloadDoxygen-3f553a8e4266b24a67e5c7302ee81e1d5e648748.zip
Doxygen-3f553a8e4266b24a67e5c7302ee81e1d5e648748.tar.gz
Doxygen-3f553a8e4266b24a67e5c7302ee81e1d5e648748.tar.bz2
Problem with '<td nowrap>'
In the docbook ouput this was shown with the attribute `nowrap>=''`, in HTML this empty tag was skipped. Normally a HTML attribute will have a value but in some cases it is possible without attribute and when this is the last attribute the `>` was accidently added to the attribute (in case of the value the `>` was already considered). Furthermore `In XHTML, attribute minimization is forbidden, and the nowrap attribute must be defined as <td nowrap="nowrap">.`, this is now handled for HTML and docbook as well.
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r--src/htmldocvisitor.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp
index e1ff3e9..c7fcaf8 100644
--- a/src/htmldocvisitor.cpp
+++ b/src/htmldocvisitor.cpp
@@ -263,6 +263,12 @@ static QCString htmlAttribsToString(const HtmlAttribList &attribs, QCString *pAl
result+="=\""+convertToXML(att->value)+"\"";
}
}
+ else if (att->name=="nowrap") // In XHTML, attribute minimization is forbidden, and the nowrap attribute must be defined as <td nowrap="nowrap">.
+ {
+ result+=" ";
+ result+=att->name;
+ result+="=\"nowrap\"";
+ }
}
return result;
}