diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-05-27 16:19:43 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-05-27 16:19:43 +0200 |
commit | 723c061271987d76f9043735e98c5f8fbb604068 (patch) | |
tree | 5361f927f19fe6a96d3f3d07e631ea95ea8616df | |
parent | 6657d1bfe35c5c2f7626cc4559cfaa2eea4a9e33 (diff) | |
download | qutebrowser-723c061271987d76f9043735e98c5f8fbb604068.tar.gz qutebrowser-723c061271987d76f9043735e98c5f8fbb604068.zip |
configdata: Remove double spaces after periods
See #5394
-rw-r--r-- | doc/help/settings.asciidoc | 6 | ||||
-rw-r--r-- | qutebrowser/config/configdata.yml | 6 | ||||
-rw-r--r-- | tests/unit/config/test_configdata.py | 3 |
3 files changed, 9 insertions, 6 deletions
diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index 3787238a9..cc020ea88 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -1671,7 +1671,7 @@ On QtWebKit, this setting is unavailable. [[colors.webpage.darkmode.threshold.background]] === colors.webpage.darkmode.threshold.background Threshold for inverting background elements with dark mode. -Background elements with brightness above this threshold will be inverted, and below it will be left as in the original, non-dark-mode page. Set to 256 to never invert the color or to 0 to always invert it. +Background elements with brightness above this threshold will be inverted, and below it will be left as in the original, non-dark-mode page. Set to 256 to never invert the color or to 0 to always invert it. Note: This behavior is the opposite of `colors.webpage.darkmode.threshold.text`! This setting requires a restart. @@ -1686,7 +1686,7 @@ On QtWebKit, this setting is unavailable. [[colors.webpage.darkmode.threshold.text]] === colors.webpage.darkmode.threshold.text Threshold for inverting text with dark mode. -Text colors with brightness below this threshold will be inverted, and above it will be left as in the original, non-dark-mode page. Set to 256 to always invert text color or to 0 to never invert text color. +Text colors with brightness below this threshold will be inverted, and above it will be left as in the original, non-dark-mode page. Set to 256 to always invert text color or to 0 to never invert text color. This setting requires a restart. Type: <<types,Int>> @@ -4029,7 +4029,7 @@ characters in the search terms are replaced by safe characters (called The search engine named `DEFAULT` is used when `url.auto_search` is turned on and something else than a URL was entered to be opened. Other search engines can be used by prepending the search engine name to the search -term, e.g. `:open google qutebrowser`. +term, e.g. `:open google qutebrowser`. Type: <<types,Dict>> diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index dc49e4cdd..664f9facf 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -1975,7 +1975,7 @@ url.searchengines: The search engine named `DEFAULT` is used when `url.auto_search` is turned on and something else than a URL was entered to be opened. Other search engines can be used by prepending the search engine name to the search - term, e.g. `:open google qutebrowser`. + term, e.g. `:open google qutebrowser`. url.start_pages: type: @@ -2719,7 +2719,7 @@ colors.webpage.darkmode.threshold.text: Threshold for inverting text with dark mode. Text colors with brightness below this threshold will be inverted, and - above it will be left as in the original, non-dark-mode page. Set to 256 + above it will be left as in the original, non-dark-mode page. Set to 256 to always invert text color or to 0 to never invert text color. restart: true backend: @@ -2736,7 +2736,7 @@ colors.webpage.darkmode.threshold.background: Threshold for inverting background elements with dark mode. Background elements with brightness above this threshold will be inverted, - and below it will be left as in the original, non-dark-mode page. Set to + and below it will be left as in the original, non-dark-mode page. Set to 256 to never invert the color or to 0 to always invert it. Note: This behavior is the opposite of diff --git a/tests/unit/config/test_configdata.py b/tests/unit/config/test_configdata.py index 321135994..4ea5ffe6d 100644 --- a/tests/unit/config/test_configdata.py +++ b/tests/unit/config/test_configdata.py @@ -59,6 +59,9 @@ def test_data(config_stub): option.typ.maxval]: assert value is None or isinstance(value, float), option + # No double spaces after dots + assert '. ' not in option.description, option + def test_init_benchmark(benchmark): benchmark(configdata.init) |