Skip to content

Commit

Permalink
Fix flake8 formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bivashy committed Sep 26, 2024
1 parent 9f0f3c7 commit 1a09aa5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/inlay_hint.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def format_inlay_hint_label(inlay_hint: InlayHint, session: Session, phantom_uui
truncated = len(label) > truncate_limit
truncated_label = label[:truncate_limit] + '…' if truncated else label
truncation_tooltip = html.escape('\n' + label) if truncated else ""
result += f'<span title="{(tooltip + instruction_text + truncation_tooltip).strip()}">{html.escape(truncated_label)}</span>'
result_tooltip = (tooltip + instruction_text + truncation_tooltip).strip()
result += f'<span title="{result_tooltip}">{html.escape(truncated_label)}</span>'
if is_clickable:
result += "</a>"
return result
Expand Down

0 comments on commit 1a09aa5

Please sign in to comment.