Revision: 4304
http://skim-app.svn.sourceforge.net/skim-app/?rev=4304&view=rev
Author: hofman
Date: 2008-07-26 17:13:46 +0000 (Sat, 26 Jul 2008)
Log Message:
-----------
use enum values for newline and return character
Modified Paths:
--------------
trunk/SKTemplateParser.m
Modified: trunk/SKTemplateParser.m
===================================================================
--- trunk/SKTemplateParser.m 2008-07-26 12:02:55 UTC (rev 4303)
+++ trunk/SKTemplateParser.m 2008-07-26 17:13:46 UTC (rev 4304)
@@ -983,7 +983,7 @@
unichar firstChar = [self characterAtIndex:firstCharRange.location];
unsigned int rangeEnd = NSMaxRange(firstCharRange);
if([[NSCharacterSet newlineCharacterSet] characterIsMember:firstChar])
{
- if (firstChar == '\r' && rangeEnd < NSMaxRange(range) && [self
characterAtIndex:rangeEnd] == '\n')
+ if (firstChar == NSCarriageReturnCharacter && rangeEnd <
NSMaxRange(range) && [self characterAtIndex:rangeEnd] == NSNewlineCharacter)
wsRange = NSMakeRange(start, rangeEnd + 1 - start);
else
wsRange = NSMakeRange(start, rangeEnd - start);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit