-rw-r--r-- | noncore/net/opietooth/manager/hciconfwrapper.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/noncore/net/opietooth/manager/hciconfwrapper.cpp b/noncore/net/opietooth/manager/hciconfwrapper.cpp index db6a326..7b2497a 100644 --- a/noncore/net/opietooth/manager/hciconfwrapper.cpp +++ b/noncore/net/opietooth/manager/hciconfwrapper.cpp @@ -93,3 +93,3 @@ namespace OpieTooth { qDebug("Found"); - // still need look if its commented out!!! + // still need to look if its commented out!!! str.simplifyWhiteSpace(); @@ -97,5 +97,5 @@ namespace OpieTooth { if (str.startsWith("#")) { - outstream << (key + " " + value + ";\n"); + str = (key + " " + value + ";"); } else { - str.replace( QRegExp( "\\s*"+key+"\\s+[^\\s][^;]*;" ), key + " " + value + ";\n"); + str = str.replace( QRegExp( "\\s*"+key+"\\s+[^\\s][^;]*;" ), key + " " + value + ";"); } @@ -103,6 +103,5 @@ namespace OpieTooth { qDebug( str ); - outstream << str; - } else { - outstream << str + "\n"; } + + outstream << str << endl; } |