]> err.no Git - sope/blobdiff - sope-core/NGExtensions/FdExt.subproj/NSString+misc.m
minor improvement to quoting
[sope] / sope-core / NGExtensions / FdExt.subproj / NSString+misc.m
index ebb30279b9d7e3b6c4b8bf06234b145c53182572..7d14a220417e06bde3cdf683f3a267d75681ab66 100644 (file)
     targetBuf[nl] = sourceBuf[i];
     nl++;
     
-    if (sourceBuf[i] == '\n') {
+    if (sourceBuf[i] == '\n' && (i + 1 != len)) {
       targetBuf[nl] = '>'; nl++;
       targetBuf[nl] = ' '; nl++;
     }