bug - CDATA notes in the software list weren't handled correctly (not used for apple family)

This commit is contained in:
Kelvin Sherlock 2023-04-27 17:57:05 -04:00
parent 23946962ad
commit aea14d8dd4

View File

@ -333,9 +333,13 @@
if (_state & 0b1000) { if (_state & 0b1000) {
// notes // 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; else _scratch = string;
} }
} }