Add test for encoding local file links with special characters

Add test to make sure Sphinx uses proper URL encoding for
special characters in file names.

Use test_html_download() since it test_html5_output() doesn't
quite seem to have easy pattern to verify the contents of href
attribute.

Issue #3097

Signed-off-by: Johannes Aalto <ext-johannes.aalto@vaisala.com>
This commit is contained in:
Johannes Aalto
2021-09-24 14:12:30 +03:00
parent cf38356a08
commit fa3b334ed0
3 changed files with 7 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ Testing downloadable files
Download :download:`img.png` here.
Download :download:`this <subdir/img.png>` there.
Download :download:`file with special characters <file_with_special_#_chars.xyz>`.
Test file and literal inclusion
===============================