diff --git a/search.py b/search.py index e1bddd4..a326a12 100644 --- a/search.py +++ b/search.py @@ -164,7 +164,7 @@ def search( search_text = search_object result_text = search_object if line_numbers: - result_text = '%4d | %s' % (index+1, result_text) + result_text = f'{index+1:>4} | {result_text}' if not all_terms_match(search_text, terms, term_matches): continue