From 108fd2c43b6abf0b0751fc777258aa9fa3012978 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 21 Mar 2014 16:50:37 +0100 Subject: [PATCH] Don't wrap option values --- TODO | 1 - qutebrowser/config/config.py | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) 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')