Skip to content

Commit

Permalink
Formatting with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
davidswarbrick committed Nov 18, 2021
1 parent 11bd513 commit fdafab7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions beets/ui/__init__.py
Expand Up @@ -860,7 +860,9 @@ def split_into_lines(string, width_tuple):
return result


def print_column_layout(indent_str, left, right, separator=u" -> ", max_width=term_width()):
def print_column_layout(
indent_str, left, right, separator=u" -> ", max_width=term_width()
):
"""Print left & right data, with separator inbetween
'left' and 'right' have a structure of:
{'prefix':u'','contents':u'','suffix':u'','width':0}
Expand Down Expand Up @@ -1014,7 +1016,11 @@ def print_newline_layout(
# Newline separation, with wrapping
empty_space = max_width - len(indent_str)
# On lower lines we will double the indent for clarity
left_width = (empty_space, empty_space - len(indent_str), empty_space - len(indent_str))
left_width = (
empty_space,
empty_space - len(indent_str),
empty_space - len(indent_str),
)
left_str = left["prefix"] + left["contents"] + left["suffix"]
left_split = split_into_lines(left_str, left_width)
# Repeat calculations for rhs, including separator on first line
Expand Down

0 comments on commit fdafab7

Please sign in to comment.