Skip to content

Commit 8a1a9f6

Browse files
author
Justin Williams
committed
Converted MiscMerge to explicitly UTF8 instead of a mish-mash of different encodings.
1 parent 2afdfc8 commit 8a1a9f6

File tree

2 files changed

+88
-88
lines changed

2 files changed

+88
-88
lines changed

MiscMerge/MiscMergeTemplate.m

+8-8
Original file line numberDiff line numberDiff line change
@@ -65,29 +65,29 @@ @implementation MiscMergeTemplate
6565
"*/
6666

6767
/*"
68-
* Returns the default string used to start a merge command, "«". A
68+
* Returns the default string used to start a merge command, "«". A
6969
* subclass of MiscMergeTemplate could override this method.
7070
"*/
7171
+ (NSString *)defaultStartDelimiter
7272
{
7373
// return @"(";
74-
// return @"«";
74+
// return @"«";
7575
/* This works better for whatever reason. Due to some unknown pecularities,
7676
a constant NSString doesn't work under Windows with Apple's
7777
implementation. */
78-
return [NSString stringWithCString:"«" encoding:NSUTF8StringEncoding];
78+
return [NSString stringWithCString:"«" encoding:NSUTF8StringEncoding];
7979
}
8080

8181
/*"
82-
* Returns the default string used to end a merge command, "»". A
82+
* Returns the default string used to end a merge command, "»". A
8383
* subclass of MiscMergeTemplate could override this method.
8484
"*/
8585
+ (NSString *)defaultEndDelimiter
8686
{
8787
// return @")";
88-
// return @"»";
88+
// return @"»";
8989
/* This works better than a constant NSString for whatever reason. See above. */
90-
return [NSString stringWithCString:"»" encoding:NSUTF8StringEncoding];
90+
return [NSString stringWithCString:"»" encoding:NSUTF8StringEncoding];
9191
}
9292

9393
/*" Creates a new, autoreleased MiscMergeTemplate. "*/
@@ -343,8 +343,8 @@ - (Class)_classForCommand:(NSString *)realCommand
343343
* classes with specific names. The name that is looked up is build from
344344
* the first word found in %{aCommand}. The first word is turned to all
345345
* lower case, with the first letter upper case, and then sandwiched
346-
* between "Merge" and "Command". For example, the merge command "«if xxx
347-
* = y»" has the word "if" as the first word. Thus, the class
346+
* between "Merge" and "Command". For example, the merge command "«if xxx
347+
* = y»" has the word "if" as the first word. Thus, the class
348348
* "MergeIfCommand" will be searched for. If the desired class cannot be
349349
* found, then it is assumed that the merge command is giving the name of a
350350
* field which should be inserted into the output document.

0 commit comments

Comments
 (0)