mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 11:41:05 +00:00
Fix ib:member-type problem
This commit is contained in:
parent
97e12a87aa
commit
a777e6e05c
1 changed files with 8 additions and 1 deletions
|
@ -3511,9 +3511,16 @@ static void _real_close(GormDocument *self,
|
|||
|
||||
NSData *data = [xliffDocument XMLDataWithOptions: NSXMLNodePrettyPrint | NSXMLNodeCompactEmptyElement ];
|
||||
NSString *xmlString = [[NSString alloc] initWithBytes: [data bytes] length: [data length] encoding: NSUTF8StringEncoding];
|
||||
NSString *fixedString = [xmlString stringByReplacingOccurrencesOfString: @"ib_member-type"
|
||||
withString: @"ib:member-type"];
|
||||
|
||||
// "fixedString" corrects a rather confusing problem where adding the
|
||||
// ib:member-type attribute, for some reason causes the NSXMLNode to
|
||||
// create a repeated declaration of the "ib" namespace. I don't understand
|
||||
// why this is happening, but this fixes it in the output for now.
|
||||
|
||||
AUTORELEASE(xmlString);
|
||||
result = [xmlString writeToFile: name atomically: YES];
|
||||
result = [fixedString writeToFile: name atomically: YES];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue