mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fix error handling whitespace in xml
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31910 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b746f90b6e
commit
307d0ea1a1
2 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-01-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSPropertyList.m: Fix to cope with NSXMLParser reporting
|
||||
whitespace as character data.
|
||||
|
||||
2011-01-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSPropertyList.m: For OSX compatibility we now quote strings
|
||||
|
|
|
@ -144,7 +144,14 @@ extern BOOL GSScanDouble(unichar*, unsigned, double*);
|
|||
- (void) parser: (NSXMLParser *)parser
|
||||
foundCharacters: (NSString *)string
|
||||
{
|
||||
[value appendString: string];
|
||||
if (YES == inString)
|
||||
{
|
||||
[value appendString: string];
|
||||
}
|
||||
else
|
||||
{
|
||||
[value appendString: [string stringByTrimmingSpaces]];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) parser: (NSXMLParser *)parser
|
||||
|
|
Loading…
Reference in a new issue