keep key=value pairs in structured fields on the same line if possible.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39320 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-01-29 15:59:56 +00:00
parent 5318d5f8c2
commit 3ab8d10f1f
2 changed files with 14 additions and 8 deletions

View file

@ -4311,7 +4311,7 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
/* Crude heuristic ... if the length of the value will definitely be
* too long to fit on a line, fold right now.
*/
if (fold > 0 && offset + [v length] > fold)
if (fold > 0 && offset + vLength > fold)
{
[md appendBytes: "\r\n " length: 3];
offset = 1;