Add one spacer to auto adjust size minimize

This commit is contained in:
2018-03-07 18:58:18 +09:00
parent a4f694f5d6
commit a396bcb838

View File

@@ -774,7 +774,7 @@ if args.read_only:
for format_key in ['latitude', 'longitude', 'path', 'country', 'state', 'city', 'location', 'filename']: for format_key in ['latitude', 'longitude', 'path', 'country', 'state', 'city', 'location', 'filename']:
format_length[format_key] = ceil(format_length[format_key] - ((format_length[format_key] / 100) * reduce_percent)) format_length[format_key] = ceil(format_length[format_key] - ((format_length[format_key] / 100) * reduce_percent))
# abort if the size of the new format is smaller than the terminal columns # abort if the size of the new format is smaller than the terminal columns
if sum(format_length.values()) + ((len(format_length) - 1) * 3) + 2 <= get_terminal_size().columns: if sum(format_length.values()) + ((len(format_length) - 1) * 3) + 3 <= get_terminal_size().columns:
abort = True abort = True
break break
# break out of the outer loop too # break out of the outer loop too