Only use OS-specific line separator for hints

This commit is contained in:
Florian Bruhin 2018-06-10 17:21:31 +02:00
parent 537aa22d64
commit 50fa7743ba
2 changed files with 3 additions and 2 deletions

View File

@ -599,7 +599,8 @@ def check_open_tabs(quteproc, request, tabs):
r'contain "(?P<content>.*)"'))
def clipboard_contains(quteproc, server, what, content):
expected = content.replace('(port)', str(server.port))
expected = expected.replace('\\n', os.linesep)
expected = expected.replace('\\n', '\n')
expected = expected.replace('(linesep)', os.linesep)
quteproc.wait_for(message='Setting fake {}: {}'.format(
what, json.dumps(expected)))

View File

@ -127,7 +127,7 @@ Feature: Using hints
And I run :follow-hint a
And I run :follow-hint s
And I run :leave-mode
Then the clipboard should contain "http://localhost:(port)/data/hello.txt\nhttp://localhost:(port)/data/hello2.txt"
Then the clipboard should contain "http://localhost:(port)/data/hello.txt(linesep)http://localhost:(port)/data/hello2.txt"
Scenario: Rapid hinting
When I open data/hints/rapid.html in a new tab