Skip to content

Commit

Permalink
feat: add line break after info
Browse files Browse the repository at this point in the history
  • Loading branch information
infstellar committed Dec 2, 2023
1 parent d9412ff commit 98a2512
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pgpl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ def __init__(self) -> None:
def set_percentage(self, x):
self.percentage = x

def set_info(self, x):
self.info = x
def set_info(self, x, end='\n'):
self.info = x+end

def inp(self, info, percentage):
self.info = info
def inp(self, info, percentage, end='\n'):
self.info = info + end
self.percentage = percentage

def add_monitor(self, text:str):
Expand Down

0 comments on commit 98a2512

Please sign in to comment.