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 25be44a commit 75c957e
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 75c957e

Please sign in to comment.