Dont use a blank line for empty subtitle

This commit is contained in:
Kovid Goyal 2022-03-31 12:43:28 +05:30
parent 2340d5be8d
commit 5297223ee3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2135,7 +2135,7 @@ class Boss:
callback: Callable[[Union[_T, str, None]], None],
subtitle: str = ''
) -> Optional[Window]:
lines = [title, subtitle, '']
lines = [title, subtitle, ''] if subtitle else [title, '']
idx_map: List[Union[_T, str]] = []
ans: Union[str, _T, None] = None
fmt = ': {1}'