diff options
author | albert-github <albert.tests@gmail.com> | 2021-04-29 11:59:33 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2021-04-29 11:59:33 (GMT) |
commit | 7fc02d88c173a275001a2551285be8f7f979181a (patch) | |
tree | 17c267f201b165b36d68db03bc52e5ace1a68ad9 /src/printdocvisitor.h | |
parent | a9f40a48c99af952836a3871e60ff6ca17ecdecf (diff) | |
download | Doxygen-7fc02d88c173a275001a2551285be8f7f979181a.zip Doxygen-7fc02d88c173a275001a2551285be8f7f979181a.tar.gz Doxygen-7fc02d88c173a275001a2551285be8f7f979181a.tar.bz2 |
issue #8522 Javadoc: type attribute of ordered lists not preserved (in xml)
The problem was a bit deeper, it was also valid for other output formats.
Implemented the `type` and `start` attribute for all relevant output types.
Diffstat (limited to 'src/printdocvisitor.h')
-rw-r--r-- | src/printdocvisitor.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/printdocvisitor.h b/src/printdocvisitor.h index 5ad0205..d1e6fab 100644 --- a/src/printdocvisitor.h +++ b/src/printdocvisitor.h @@ -385,7 +385,17 @@ class PrintDocVisitor : public DocVisitor void visitPre(DocHtmlList *s) { indent_pre(); - if (s->type()==DocHtmlList::Ordered) printf("<ol>\n"); else printf("<ul>\n"); + if (s->type()==DocHtmlList::Ordered) + { + printf("<ol"); + for (const auto &opt : s->attribs()) + { + printf(" %s=\"%s\"",qPrint(opt.name),qPrint(opt.value)); + } + printf(">\n"); + } + else printf("<ul>\n"); + } void visitPost(DocHtmlList *s) { |