diff options
author | Mattias Ellert <mattias.ellert@fysast.uu.se> | 2014-08-31 17:19:01 (GMT) |
---|---|---|
committer | Mattias Ellert <mattias.ellert@fysast.uu.se> | 2014-08-31 17:19:01 (GMT) |
commit | 4bbcf71defb2e2be02494b7ff68d475d1a0438ac (patch) | |
tree | ce8fd4f24d7aa998083c1fda8eb66001ae71db71 /src | |
parent | 7a0f5e6d565db6192f8c22045d7988a0b4e4d8c3 (diff) | |
download | Doxygen-4bbcf71defb2e2be02494b7ff68d475d1a0438ac.zip Doxygen-4bbcf71defb2e2be02494b7ff68d475d1a0438ac.tar.gz Doxygen-4bbcf71defb2e2be02494b7ff68d475d1a0438ac.tar.bz2 |
Bug 652276 - Typedefs in manpages has too few linebreak possiblilities
Diffstat (limited to 'src')
-rw-r--r-- | src/doxygen.cpp | 4 | ||||
-rw-r--r-- | src/memberdef.cpp | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 533e6ef..d263ac5 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -2833,14 +2833,14 @@ static void addVariable(EntryNav *rootNav,int isFuncPtr=-1) else if (root->type.find(')',i)!=-1) // function ptr, not variable like "int (*bla)[10]" { root->type=root->type.left(root->type.length()-1); - root->args.prepend(")"); + root->args.prepend(") "); //printf("root->type=%s root->args=%s\n",root->type.data(),root->args.data()); } } else if (root->type.find("typedef ")!=-1 && root->type.right(2)=="()") // typedef void (func)(int) { root->type=root->type.left(root->type.length()-1); - root->args.prepend(")"); + root->args.prepend(") "); } } diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 7b4908a..1af58ef 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -1669,13 +1669,15 @@ void MemberDef::writeDeclaration(OutputList &ol, // *** write arguments if (argsString() && !isObjCMethod()) { - if (!isDefine()) ol.writeString(" "); + if (!isDefine() && !isTypedef()) ol.writeString(" "); linkifyText(TextGeneratorOLImpl(ol), // out d, // scope getBodyDef(), // fileScope this, // self isDefine() ? (const char*)substitute(argsString(),",",", ") : + isTypedef() ? + (const char*)substitute(argsString(),")(",") (") : argsString(), // text m_impl->annMemb, // autoBreak TRUE, // external |