From ee579b4bc3eec503ca62f4bd12a6ceff3ae053c9 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 18 May 2016 06:37:26 +0200 Subject: [PATCH] Add a script to strip trailing whitespace Obsoletes #1498 --- scripts/dev/strip_whitespace.py | 10 ++++++++++ tests/integration/features/editor.feature | 2 +- tests/integration/features/tabs.feature | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 scripts/dev/strip_whitespace.py diff --git a/scripts/dev/strip_whitespace.py b/scripts/dev/strip_whitespace.py new file mode 100644 index 000000000..ee14278e3 --- /dev/null +++ b/scripts/dev/strip_whitespace.py @@ -0,0 +1,10 @@ +#!/bin/bash + +# Strip trailing whitespace from files in this repo + +find qutebrowser scripts tests \ + -type f \( \ + -name '*.py' -o \ + -name '*.feature' -o \ + -name '*.sh' \ + \) -exec sed -i 's/ \+$//' {} + diff --git a/tests/integration/features/editor.feature b/tests/integration/features/editor.feature index ef3798564..8bb48926f 100644 --- a/tests/integration/features/editor.feature +++ b/tests/integration/features/editor.feature @@ -46,7 +46,7 @@ Feature: Opening external editors history: - active: true url: http://localhost:*/data/numbers/2.txt - + Scenario: Editing an URL with count Given I have a fresh instance When I open data/numbers/1.txt diff --git a/tests/integration/features/tabs.feature b/tests/integration/features/tabs.feature index 6bc070543..f8c3941bb 100644 --- a/tests/integration/features/tabs.feature +++ b/tests/integration/features/tabs.feature @@ -863,7 +863,7 @@ Feature: Tab management When I open data/title.html And I run :buffer "1/2/3" Then the error "No matching tab for: 1/2/3" should be shown - + Scenario: Using :tab-next after closing last tab (#1448) When I set tabs -> last-close to close And I run :tab-only