mirror of
https://github.com/ksherlock/ample.git
synced 2026-03-10 16:18:18 +00:00
bug - CDATA notes in the software list weren't handled correctly (not used for apple family)
This commit is contained in:
@@ -333,9 +333,13 @@
|
||||
|
||||
if (_state & 0b1000) {
|
||||
// notes
|
||||
NSString *string = [[NSString new] initWithData: CDATABlock encoding: NSUTF8StringEncoding];
|
||||
NSString *string = [[NSString alloc] initWithData: CDATABlock encoding: NSUTF8StringEncoding];
|
||||
|
||||
if (_scratch) _notes = [_scratch stringByAppendingString: string];
|
||||
string = [string stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];
|
||||
if (_scratch) {
|
||||
_scratch = [_scratch stringByAppendingString: @"\n"];
|
||||
_scratch = [_scratch stringByAppendingString: string];
|
||||
}
|
||||
else _scratch = string;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user