diff --git a/TODO b/TODO index a473c0f40..5f13eca5e 100644 --- a/TODO +++ b/TODO @@ -1,7 +1,6 @@ New config TODO =============== -- Writing _monospace doesn't work correctly (indented too much?) - How to handle interpolation correctly? Maybe we really should handle interpolation ourselves? Main problem: When re-writing the value, we don't know about the interpolation anymore, so we write the wrong value. - Tabbing through setting completion does not work diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index 2d4f4a37e..74a15a00b 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -144,17 +144,10 @@ class Config: def _str_items(self, section): """Get the option items as string for section.""" - keyval_wrapper = textwrap.TextWrapper(initial_indent='', - subsequent_indent=' ' * 4, - drop_whitespace=False, - **self._wrapper_args) lines = [] for optname, option in section.items(): keyval = '{} = {}'.format(optname, option) - if 'http://' in keyval: - lines.append(keyval) - else: - lines += keyval_wrapper.wrap(keyval) + lines.append(keyval) return lines @cmdutils.register(instance='config')