diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-04-17 18:47:53 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-04-17 18:47:53 (GMT) |
commit | 0e7fba152ca1c24593a5c9b01460116d16ca3f97 (patch) | |
tree | 25b1690e57effb00b6b482041be7b48ca0ae643e /src/memberdef.cpp | |
parent | 0001e1e28b80b870b85b82b9f1cacfdb5cd834eb (diff) | |
download | Doxygen-0e7fba152ca1c24593a5c9b01460116d16ca3f97.zip Doxygen-0e7fba152ca1c24593a5c9b01460116d16ca3f97.tar.gz Doxygen-0e7fba152ca1c24593a5c9b01460116d16ca3f97.tar.bz2 |
Release-1.1.2-20000417
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r-- | src/memberdef.cpp | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 86b91bf..36d4945 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -157,6 +157,10 @@ static void writeDefArgumentList(OutputList &ol,ClassDef *cd, ol.endParameter(FALSE); } } + ol.pushGeneratorState(); + ol.disableAllBut(OutputGenerator::Html); + ol.writeString(" "); + ol.popGeneratorState(); ol.docify(")"); // end argument list if (argList->constSpecifier) { @@ -728,8 +732,16 @@ void MemberDef::writeDeclaration(OutputList &ol, if (!init.isEmpty() && initLines==0) // add initializer { - if (!isDefine()) ol.writeString(" = "); else ol.writeNonBreakableSpace(); - linkifyText(ol,cname,name(),init); + if (!isDefine()) + { + ol.writeString(" = "); + linkifyText(ol,cname,name(),init.simplifyWhiteSpace()); + } + else + { + ol.writeNonBreakableSpace(); + linkifyText(ol,cname,name(),init); + } } if (!detailsVisible && !Config::extractAllFlag && !annMemb) @@ -905,8 +917,16 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol, writeDefArgumentList(ol,cd,scopeName,this); if (!init.isEmpty() && initLines==0) // add initializer { - if (!isDefine()) ol.docify(" = "); else ol.writeNonBreakableSpace(); - linkifyText(ol,scopeName,name(),init); + if (!isDefine()) + { + ol.docify(" = "); + linkifyText(ol,scopeName,name(),init.simplifyWhiteSpace()); + } + else + { + ol.writeNonBreakableSpace(); + linkifyText(ol,scopeName,name(),init); + } } if (excpString()) // add exception list { @@ -975,7 +995,14 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol, parseText(ol,theTranslator->trInitialValue()); ol.endBold(); ol.startCodeFragment(); - parseCode(ol,scopeName,init,FALSE,0); + if (isDefine()) + { + parseCode(ol,scopeName,init,FALSE,0); + } + else + { + parseCode(ol,scopeName,init.simplifyWhiteSpace(),FALSE,0); + } ol.endCodeFragment(); } |