From 456955c657d07458ed66bb9b3a256eef66664771 Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 9 Feb 2005 12:26:27 +0000 Subject: [PATCH] minor improvement to quoting git-svn-id: http://svn.opengroupware.org/SOPE/trunk@547 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-core/NGExtensions/ChangeLog | 5 +++++ sope-core/NGExtensions/FdExt.subproj/NSString+misc.m | 2 +- sope-core/NGExtensions/Version | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/sope-core/NGExtensions/ChangeLog b/sope-core/NGExtensions/ChangeLog index 3b6e4ab5..862a630a 100644 --- a/sope-core/NGExtensions/ChangeLog +++ b/sope-core/NGExtensions/ChangeLog @@ -1,3 +1,8 @@ +2005-02-09 Helge Hess + + * FdExt.subproj/NSString+misc.m: do not quote the last newline if the + newline is the last char in the string (v4.5.143) + 2005-02-08 Helge Hess * FdExt.subproj/NSString+misc.m: added new method diff --git a/sope-core/NGExtensions/FdExt.subproj/NSString+misc.m b/sope-core/NGExtensions/FdExt.subproj/NSString+misc.m index ebb30279..7d14a220 100644 --- a/sope-core/NGExtensions/FdExt.subproj/NSString+misc.m +++ b/sope-core/NGExtensions/FdExt.subproj/NSString+misc.m @@ -322,7 +322,7 @@ targetBuf[nl] = sourceBuf[i]; nl++; - if (sourceBuf[i] == '\n') { + if (sourceBuf[i] == '\n' && (i + 1 != len)) { targetBuf[nl] = '>'; nl++; targetBuf[nl] = ' '; nl++; } diff --git a/sope-core/NGExtensions/Version b/sope-core/NGExtensions/Version index 639e30fc..5bbbefc9 100644 --- a/sope-core/NGExtensions/Version +++ b/sope-core/NGExtensions/Version @@ -1,6 +1,6 @@ # version -SUBMINOR_VERSION:=142 +SUBMINOR_VERSION:=143 # v4.3.115 requires libFoundation v1.0.59 # v4.2.72 requires libEOControl v4.2.39 -- 2.39.5