mirror of
https://github.com/ksherlock/ample.git
synced 2024-10-31 15:04:56 +00:00
bug - CDATA notes in the software list weren't handled correctly (not used for apple family)
This commit is contained in:
parent
23946962ad
commit
aea14d8dd4
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user