Skip to content

Commit

Permalink
Don't pad filenames that won't be followed by tags. Fixes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
jdberry committed Feb 12, 2014
1 parent cdd8dba commit 9845f81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tag/Tag.m
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ - (void)emitURL:(NSURL*)URL tags:(NSArray*)tagArray

if (fileName)
{
int minFileFieldWidth = tagsOnSeparateLines ? 0 : 31;
NSString* fileField = [self string:fileName paddedToMinimumLength:minFileFieldWidth];
BOOL padFileField = printTags && !tagsOnSeparateLines;
NSString* fileField = padFileField ? [self string:fileName paddedToMinimumLength:31] : fileName;
Printf(@"%@", fileField);
}

Expand Down

0 comments on commit 9845f81

Please sign in to comment.