Add a script to strip trailing whitespace

Obsoletes #1498
This commit is contained in:
Florian Bruhin 2016-05-18 06:37:26 +02:00
parent 0c1e82a103
commit ee579b4bc3
3 changed files with 12 additions and 2 deletions

View File

@ -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/ \+$//' {} +

View File

@ -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

View File

@ -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