Index: trunk/BNC/rinex/rnxobsfile.cpp
===================================================================
--- trunk/BNC/rinex/rnxobsfile.cpp	(revision 3978)
+++ trunk/BNC/rinex/rnxobsfile.cpp	(revision 3979)
@@ -833,8 +833,17 @@
       }
       else {
-        *_stream << QString("%1%2%3")
-          .arg(rnxSat.obs[iType], 14, 'f', 3)
-          .arg(rnxSat.lli[iType],1)
-          .arg(rnxSat.snr[iType],1);
+        *_stream << QString("%1").arg(rnxSat.obs[iType], 14, 'f', 3);
+        if (rnxSat.lli[iType] != 0.0) {
+          *_stream << QString("%1").arg(rnxSat.lli[iType],1);
+        }
+        else {
+          *_stream << ' ';
+        }
+        if (rnxSat.snr[iType] != 0.0) {
+          *_stream << QString("%1").arg(rnxSat.snr[iType],1);
+        }
+        else {
+          *_stream << ' ';
+        }
       }
     }
@@ -887,8 +896,17 @@
       }
       else {
-        *_stream << QString("%1%2%3")
-          .arg(rnxSat.obs[iType], 14, 'f', 3)
-          .arg(rnxSat.lli[iType],1)
-          .arg(rnxSat.snr[iType],1);
+        *_stream << QString("%1").arg(rnxSat.obs[iType], 14, 'f', 3);
+        if (rnxSat.lli[iType] != 0.0) {
+          *_stream << QString("%1").arg(rnxSat.lli[iType],1);
+        }
+        else {
+          *_stream << ' ';
+        }
+        if (rnxSat.snr[iType] != 0.0) {
+          *_stream << QString("%1").arg(rnxSat.snr[iType],1);
+        }
+        else {
+          *_stream << ' ';
+        }
       }
     }
