Skip to content

Commit 4f0cb88

Browse files
committed
Make the print full widht
1 parent 5e0e6fe commit 4f0cb88

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pretty_verbose/__init__.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import re
44
from datetime import datetime
55
from pathlib import Path
6+
import os
67

78

89
class VerboseMessages:
@@ -189,8 +190,9 @@ def log(
189190

190191
# Print message in the given color.
191192
print(
192-
color + now +
193-
self.format_message(name, message, decorator),
193+
(
194+
color + now + self.format_message(name, message, decorator)
195+
).ljust(os.get_terminal_size().columns),
194196
end=end
195197
)
196198

0 commit comments

Comments
 (0)