colors: Strip whitespace from both ends of the formatted string.
This commit is contained in:
parent
1e016ad495
commit
44e065d818
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ class Formatted():
|
||||||
return text
|
return text
|
||||||
|
|
||||||
weechat_strings = map(format_string, self.substrings)
|
weechat_strings = map(format_string, self.substrings)
|
||||||
return "".join(weechat_strings).rstrip("\n").replace("\n\n", "\n")
|
return "".join(weechat_strings).replace("\n\n", "\n").strip()
|
||||||
|
|
||||||
|
|
||||||
# TODO this should be a typed dict.
|
# TODO this should be a typed dict.
|
||||||
|
|
Loading…
Add table
Reference in a new issue