Skip to content

Commit eb5cc63

Browse files
committed
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: bb89b81 [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.
1 parent 52f38d8 commit eb5cc63

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/htmldocvisitor.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,12 @@ void HtmlDocVisitor::visitPre(DocPara *p)
12661266
//printf(" needsTag=%d\n",needsTag);
12671267
// write the paragraph tag (if needed)
12681268
if (needsTag)
1269-
m_t << "<p class=\"" << contexts[t] << "\"" << htmlAttribsToString(p->attribs()) << ">";
1269+
{
1270+
if (strlen(contexts[t]))
1271+
m_t << "<p class=\"" << contexts[t] << "\"" << htmlAttribsToString(p->attribs()) << ">";
1272+
else
1273+
m_t << "<p " << htmlAttribsToString(p->attribs()) << ">";
1274+
}
12701275
}
12711276

12721277
void HtmlDocVisitor::visitPost(DocPara *p)

0 commit comments

Comments
 (0)