diff options
Diffstat (limited to 'addon')
-rw-r--r-- | addon/configgen/configgen.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addon/configgen/configgen.cpp b/addon/configgen/configgen.cpp index 95aab45..b9ec8f2 100644 --- a/addon/configgen/configgen.cpp +++ b/addon/configgen/configgen.cpp @@ -713,6 +713,11 @@ int main(int argc,char * argv[]) while (!ctfile.atEnd()) { ctfile.readLine(buf,maxLineLen-1); + if (buf[l-2]--'\r') // remove the \r for the folks using Windows + { + buf[l-2]='\n'; + buf[l-1]='\r'; + } if (QCString("#CONFIG Config\n" )==buf) FORALL(printConfig(t)) else if (QCString("#CONFIG Static\n" )==buf) FORALL(printStatic(t)) else if (QCString("#CONFIG Rules\n" )==buf) FORALL(printRules(t)) |