Skip to content

Commit

Permalink
iimprove formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Mar 4, 2024
1 parent 6a221b4 commit 145ee71
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Tools/xpbs.m
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ - (NSArray*) availableTypes
|| (type == XG_MIME_PLAIN))
{
if (nil == txt)
txt = [NSMutableString stringWithFormat: @" string:%s", name];
txt = [NSMutableString stringWithFormat: @"\n\tstring:%s", name];
else
[txt appendFormat: @",%s", name];
[types addObject: NSStringPboardType];
Expand All @@ -919,7 +919,7 @@ - (NSArray*) availableTypes
|| (type == XG_MIME_TEXT_RICHTEXT))
{
if (nil == rtf)
rtf = [NSMutableString stringWithFormat: @" rich-text:%s", name];
rtf = [NSMutableString stringWithFormat: @"\n\trich-text:%s", name];
else
[rtf appendFormat: @",%s", name];
[types addObject: NSRTFPboardType];
Expand All @@ -938,15 +938,18 @@ - (NSArray*) availableTypes
{
// Standard types
if (nil == std)
std = [NSMutableString stringWithFormat: @" standard:%s", name];
std = [NSMutableString stringWithFormat: @"\n\tstandard:%s", name];
else
[std appendFormat: @",%s", name];
}
// FIXME: Support more types
else
{
if (nil == bad)
bad = [NSMutableString stringWithFormat: @" unsupported:%s", name];
{
bad = [NSMutableString stringWithFormat:
@"\n\tunsupported:%s", name];
}
else
[bad appendFormat: @",%s", name];
// FIXME: We should rather add this type to the
Expand All @@ -955,7 +958,7 @@ - (NSArray*) availableTypes
XFree(name);
}

NSDebugLLog(@"Pbs", @"%@ availableTypes: %d types available: %@%@%@%@%@",
NSDebugLLog(@"Pbs", @"%@ availableTypes: %d types\n\tavailable: %@%@%@%@%@",
[[self osPb] name], count, types,
(txt ? txt : @""), (rtf ? rtf : @""), (std ? std : @""), (bad ? bad : @""));

Expand Down

0 comments on commit 145ee71

Please sign in to comment.