diff options
author | albert-github <albert.tests@gmail.com> | 2021-05-13 13:37:45 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2021-05-13 13:37:45 (GMT) |
commit | eb5cc632bcd995af52b5a79f84bf2a6bad1a1ba0 (patch) | |
tree | 31326643d0ba6871328cf36ce02d50461da8754a | |
parent | 52f38d8f33c324a7cedcb596f606c960386ca652 (diff) | |
download | Doxygen-eb5cc632bcd995af52b5a79f84bf2a6bad1a1ba0.zip Doxygen-eb5cc632bcd995af52b5a79f84bf2a6bad1a1ba0.tar.gz Doxygen-eb5cc632bcd995af52b5a79f84bf2a6bad1a1ba0.tar.bz2 |
Empty class definition.
In e.g. the HTML output of the doxygen documentation, chapter about formulas we see:
```
<p class="">
```
this is a regressing due to commit:
```
Commit: bb89b8136ff835c8fbd9f313d58815c8f361dff9 [bb89b81]
Date: Thursday, March 4, 2021 9:14:49 PM
Refactoring: some cleanup and removed text direction logic
```
made test now so that no empty class can occur.
-rw-r--r-- | src/htmldocvisitor.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp index e4ec0d6..cfc1b91 100644 --- a/src/htmldocvisitor.cpp +++ b/src/htmldocvisitor.cpp @@ -1266,7 +1266,12 @@ void HtmlDocVisitor::visitPre(DocPara *p) //printf(" needsTag=%d\n",needsTag); // write the paragraph tag (if needed) if (needsTag) - m_t << "<p class=\"" << contexts[t] << "\"" << htmlAttribsToString(p->attribs()) << ">"; + { + if (strlen(contexts[t])) + m_t << "<p class=\"" << contexts[t] << "\"" << htmlAttribsToString(p->attribs()) << ">"; + else + m_t << "<p " << htmlAttribsToString(p->attribs()) << ">"; + } } void HtmlDocVisitor::visitPost(DocPara *p) |