1. Luke Plant
  2. sphinx

Commits

Georg Brandl  committed 432ee1b

Add a test for absolute image filenames.

  • Participants
  • Parent commits fbf7f5e
  • Branches default

Comments (0)

Files changed (2)

File tests/root/subdir/includes.txt

View file
  • Ignore whitespace
    :lines: 2
 
 Absolute :download:`/img.png` download.
+
+.. absolute image filename
+.. image:: /img.png

File tests/test_build_html.py

View file
  • Ignore whitespace
     },
     'subdir/includes.html': {
         ".//a[@href='../_downloads/img.png']": '',
+        ".//img[@src='../_images/img.png']": '',
     },
     'includes.html': {
         ".//pre": u'Max Strauß',