ObjFW  Diff

Differences From Artifact [504a2316bf]:

To Artifact [af996b6de2]:


475
476
477
478
479
480
481
482
483

484
485
486
487
488
489
490
491
475
476
477
478
479
480
481


482

483
484
485
486
487
488
489







-
-
+
-







			[stream writeFormat: @"%@\r\n", comment->_comment];
		} else if ([line isKindOfClass: [OFINICategoryPair class]]) {
			OFINICategoryPair *pair = line;
			OFString *key = escapeString(pair->_key);
			OFString *value = escapeString(pair->_value);
			OFString *tmp = [OFString
			    stringWithFormat: @"%@=%@\r\n", key, value];

			[stream writeString: tmp
			[stream writeString: tmp encoding: encoding];
				   encoding: encoding];
		} else
			@throw [OFInvalidArgumentException exception];
	}

	return true;
}
@end