Skip to content

Commit 3a02eed

Browse files
committed
Remove inconsistency regaring whitespace at the end of template declaration
1 parent 38a6679 commit 3a02eed

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/memberdef.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2176,9 +2176,12 @@ void MemberDefImpl::_writeTemplatePrefix(OutputList &ol, const Definition *def,
21762176
a.type, // text
21772177
FALSE // autoBreak
21782178
);
2179-
ol.docify(" ");
2180-
ol.docify(a.name);
2181-
if (a.defval.length()!=0)
2179+
if (!a.name.isEmpty())
2180+
{
2181+
ol.docify(" ");
2182+
ol.docify(a.name);
2183+
}
2184+
if (!a.defval.isEmpty())
21822185
{
21832186
ol.docify(" = ");
21842187
ol.docify(a.defval);

0 commit comments

Comments
 (0)