Closed ajgringo619 closed 2 years ago
Are you sure the carriage return is in term.normal
and not in user_stats_timestamp
? Can you provide the output of term.normal
? I would expect it to be similar to the following.
>>> import blessed
>>> term = blessed.Terminal()
>>> term.normal
'\x1b(B\x1b[m'
Thanks for the hint. I had forgotten to strip the variable when it was read from a file.
I'm trying to add a bold/underlined variable to an f-string. While this works, I want to add a closing parentheses at the end of the line:
Unfortunately, I'm getting a carriage return inserted by term.normal, placing the parentheses mark on the next line:
Is there a way to prevent this?