diff -r 93b982ccede2 -r 5daf16870df6 tools/qdoc3/doc.cpp --- a/tools/qdoc3/doc.cpp Mon Jun 21 22:38:13 2010 +0100 +++ b/tools/qdoc3/doc.cpp Thu Jul 22 16:41:55 2010 +0100 @@ -3036,7 +3036,7 @@ QString result; result.reserve(title.size()); - bool slurping = false; + bool dashAppended = false; bool begun = false; int lastAlnum = 0; for (int i = 0; i != title.size(); ++i) { @@ -3047,17 +3047,21 @@ if (alnum) { result += QLatin1Char(c); begun = true; - slurping = false; + dashAppended = false; lastAlnum = result.size(); } - else if (!slurping) { + else if (!dashAppended) { if (begun) result += QLatin1Char('-'); - slurping = true; + dashAppended = true; } +#if 0 + // This was screwing things up. else { - // !alnum && slurping -> nothin + result += title[i]; + lastAlnum = result.size(); } +#endif } result.truncate(lastAlnum); return result;