Revision: 28566
http://sourceforge.net/p/bibdesk/svn/28566
Author: hofman
Date: 2024-01-06 22:47:59 +0000 (Sat, 06 Jan 2024)
Log Message:
-----------
don't bother appending empty string
Modified Paths:
--------------
trunk/bibdesk/NSString_BDSKExtensions.m
Modified: trunk/bibdesk/NSString_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSString_BDSKExtensions.m 2024-01-06 22:22:13 UTC (rev
28565)
+++ trunk/bibdesk/NSString_BDSKExtensions.m 2024-01-06 22:47:59 UTC (rev
28566)
@@ -1581,10 +1581,12 @@
}
#define APPEND_PREVIOUS() \
- string = [[NSString alloc] initWithCharacters:begin length:(ptr - begin)];
\
+ if (ptr > begin) { \
+ string = [[NSString alloc] initWithCharacters:begin length:(ptr -
begin)]; \
[result appendString:string]; \
- [string release]; \
- begin = ptr + 1;
+ [string release]; \
+ } \
+ begin = ptr + 1;
// Stolen and modified from the OmniFoundation -htmlString.
- (NSString *)htmlStringEscapingBreak:(BOOL)escapeBreak;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit