From 532b8558703673b104b9e107ed49c0e422b3d594 Mon Sep 17 00:00:00 2001 From: fedor Date: Mon, 22 Aug 2005 22:51:02 +0000 Subject: [PATCH] Source/NSGeometry.m (NSStringFromPoint, NSStringFromRect, NSStringFromSize): Add spaces around '='. (Based on suggestion from Matthias Hengartner). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21667 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/NSGeometry.m | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 32fc9ad4a..181f3d98d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-08-22 Adam Fedor + + * Source/NSGeometry.m (NSStringFromPoint, NSStringFromRect, + NSStringFromSize): Add spaces around '='. (Based on suggestion + from Matthias Hengartner). + 2005-08-12 Adam Fedor * configure.ac: Check if we can read the psinfo struct from diff --git a/Source/NSGeometry.m b/Source/NSGeometry.m index 54d6a8857..fdbb9b190 100644 --- a/Source/NSGeometry.m +++ b/Source/NSGeometry.m @@ -204,6 +204,8 @@ NSDivideRect(NSRect aRect, } /** Get a String Representation... **/ +/* NOTE: Spaces around '=' so that old OpenStep implementations can + read our strings (Both GNUstep and Mac OS X can read these as well). */ NSString* NSStringFromPoint(NSPoint aPoint) @@ -214,7 +216,7 @@ NSStringFromPoint(NSPoint aPoint) @"{%g, %g}", aPoint.x, aPoint.y]; else return [NSStringClass stringWithFormat: - @"{x=%g; y=%g}", aPoint.x, aPoint.y]; + @"{x = %g; y = %g}", aPoint.x, aPoint.y]; } NSString* @@ -227,7 +229,7 @@ NSStringFromRect(NSRect aRect) aRect.origin.x, aRect.origin.y, aRect.size.width, aRect.size.height]; else return [NSStringClass stringWithFormat: - @"{x=%g; y=%g; width=%g; height=%g}", + @"{x = %g; y = %g; width = %g; height = %g}", aRect.origin.x, aRect.origin.y, aRect.size.width, aRect.size.height]; } @@ -240,7 +242,7 @@ NSStringFromSize(NSSize aSize) @"{%g, %g}", aSize.width, aSize.height]; else return [NSStringClass stringWithFormat: - @"{width=%g; height=%g}", aSize.width, aSize.height]; + @"{width = %g; height = %g}", aSize.width, aSize.height]; } NSPoint