Index: trunk/ippTools/src/dettool.c
===================================================================
--- trunk/ippTools/src/dettool.c	(revision 9429)
+++ trunk/ippTools/src/dettool.c	(revision 9440)
@@ -146,7 +146,13 @@
     PS_ASSERT_PTR_NON_NULL(config, NULL);
 
-     psString query = psStringCopy("SELECT rawDetrendExp.* FROM rawDetrendExp"
-        " LEFT JOIN detInputExp ON rawDetrendExp.exp_tag = detInputExp.exp_tag"
-        " WHERE detInputExp.exp_tag IS NULL");
+     psString query = psStringCopy(
+        "SELECT"
+        "   rawDetrendExp.*"
+        " FROM rawDetrendExp"
+        " LEFT JOIN detInputExp"
+        "   ON rawDetrendExp.exp_tag = detInputExp.exp_tag"
+        " WHERE"
+        "    detInputExp.exp_tag IS NULL"
+    );
 
     if (config->where) {
