diff options
Diffstat (limited to 'src/util.cpp')
-rwxr-xr-x | src/util.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util.cpp b/src/util.cpp index f1ebf8b..3593c9d 100755 --- a/src/util.cpp +++ b/src/util.cpp @@ -1887,9 +1887,10 @@ QCString removeRedundantWhiteSpace(const QCString &s) { if (g_charAroundSpace.charMap[(uchar)pc].before && g_charAroundSpace.charMap[(uchar)nc].after && - !(pc==',' && nc=='.')) - // remove spaces/tabs - { + !(pc==',' && nc=='.') && + (osp<8 || (osp>=8 && isId(nc))) // e.g. "operator >>" -> "operator>>", but not "operator int" -> operatorint" + ) + { // keep space *dst++=' '; } } @@ -1915,6 +1916,7 @@ QCString removeRedundantWhiteSpace(const QCString &s) pc=c; } *dst++='\0'; + //printf("removeRedundantWhitespace(%s)->%s\n",s.data(),growBuf); return growBuf; } |