summaryrefslogtreecommitdiffstats
path: root/src/memberdef.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-04-09 18:46:16 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-04-09 18:46:16 (GMT)
commit0001e1e28b80b870b85b82b9f1cacfdb5cd834eb (patch)
treefd63e43b2dca7528a3a4ac6ae45bf46fb3fc0ea3 /src/memberdef.cpp
parentba6357a253beeff03588578154bbc311bd986a47 (diff)
downloadDoxygen-0001e1e28b80b870b85b82b9f1cacfdb5cd834eb.zip
Doxygen-0001e1e28b80b870b85b82b9f1cacfdb5cd834eb.tar.gz
Doxygen-0001e1e28b80b870b85b82b9f1cacfdb5cd834eb.tar.bz2
Release 1.1.2
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r--src/memberdef.cpp28
1 files changed, 8 insertions, 20 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp
index 2c1fd32..86b91bf 100644
--- a/src/memberdef.cpp
+++ b/src/memberdef.cpp
@@ -101,22 +101,12 @@ static void writeDefArgumentList(OutputList &ol,ClassDef *cd,
}
//printf("~~~ %s cName=%s\n",md->name().data(),cName.data());
- // You can set the next to TRUE to experiment with multiline parameter lists.
- // I'll add this in some form in a future release.
- bool multiLineArgs = FALSE; /* argList->count()>2; */
+ bool first=TRUE;
while (a)
{
+ ol.startParameter(first); first=FALSE;
QRegExp re(")(");
int vp;
- if (multiLineArgs)
- {
- ol.pushGeneratorState();
- ol.disableAllBut(OutputGenerator::Html);
- ol.lineBreak();
- ol.writeNonBreakableSpace();
- ol.writeNonBreakableSpace();
- ol.popGeneratorState();
- }
if (!a->attrib.isEmpty()) // argument has an IDL attribute
{
ol.docify(a->attrib+" ");
@@ -161,14 +151,11 @@ static void writeDefArgumentList(OutputList &ol,ClassDef *cd,
linkifyText(ol,scopeName,md->name(),n);
}
a=argList->next();
- if (a) ol.docify(", "); // there are more arguments
- }
- if (multiLineArgs)
- {
- ol.pushGeneratorState();
- ol.disableAllBut(OutputGenerator::Html);
- ol.lineBreak();
- ol.popGeneratorState();
+ if (a)
+ {
+ ol.docify(", "); // there are more arguments
+ ol.endParameter(FALSE);
+ }
}
ol.docify(")"); // end argument list
if (argList->constSpecifier)
@@ -971,6 +958,7 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
ol.docify("]");
ol.endTypewriter();
}
+ ol.endParameter(TRUE);
ol.endMemberDoc();
ol.endDoxyAnchor();
ol.startIndent();