Skip to content

Commit

Permalink
🎨 Lint with black
Browse files Browse the repository at this point in the history
  • Loading branch information
ollyhensby committed Sep 11, 2024
1 parent 6b771be commit 0f224a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ipyautoui/custom/buttonbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,10 @@ def display_ui_tooltips(uiobj: w.DOMWidget) -> w.VBox:
li.append(v)
except Exception as err:
logging.warning(err)
return w.VBox([w.HBox([l, w.HTML(f"<i>{l.tooltip}</i>")]) for l in li])
replace_newlines = lambda x: x.replace("\n", "<br>")
return w.VBox(
[w.HBox([l, w.HTML(f"<i>{replace_newlines(l.tooltip)}</i>")]) for l in li]
)


class CrudButtonBar(w.VBox): # w.HBox
Expand Down Expand Up @@ -511,5 +514,3 @@ def backward():
fn_reload=lambda: print("fn_reload"),
)
display(buttonbar)


0 comments on commit 0f224a2

Please sign in to comment.