diff --git a/qutebrowser/utils/split.py b/qutebrowser/utils/split.py index f94efa469..18e4d13ed 100644 --- a/qutebrowser/utils/split.py +++ b/qutebrowser/utils/split.py @@ -205,4 +205,5 @@ def simple_split(s, keep=False, maxsplit=None): else: pattern = '[' + whitespace + ']' parts = re.split(pattern, s, maxsplit) + parts[-1] = parts[-1].rstrip() return [p for p in parts if p]