Skip to content

Commit

Permalink
Adjust some string formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
thatbudakguy committed Jul 28, 2024
1 parent bb02f26 commit 83d2dfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dphon/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,6 @@ def _add_span_context(self, span: Span) -> Tuple[str, str]:
context_left = span.doc[span.start - self.context : span.start]
context_right = span.doc[span.end : span.end + self.context]
return (
f"[context]{context_left.text.rjust(self.context, " ")}[/context]",
f"[context]{context_right.text.ljust(self.context, " ")}[/context]",
f"[context]{context_left.text.rjust(self.context, ' ')}[/context]",
f"[context]{context_right.text.ljust(self.context, ' ')}[/context]",
)

0 comments on commit 83d2dfe

Please sign in to comment.