From 75c957e5eff3b06eb548baeebc85c8621152db1c Mon Sep 17 00:00:00 2001 From: Nick Budak Date: Sun, 28 Jul 2024 15:42:34 -0700 Subject: [PATCH] Adjust some string formatting --- dphon/console.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dphon/console.py b/dphon/console.py index a2b7dc9..99b1b29 100644 --- a/dphon/console.py +++ b/dphon/console.py @@ -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]", )