mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
5318d5f8c2
commit
3ab8d10f1f
2 changed files with 14 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue