mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
0
tests/roots/test-root/file_with_special_#_chars.xyz
Normal file
0
tests/roots/test-root/file_with_special_#_chars.xyz
Normal 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
|
||||
===============================
|
||||
|
||||
Reference in New Issue
Block a user