]> git.xonotic.org Git - xonotic/xonotic.wiki.git/commitdiff
forgot format()
authorMartin Taibr <taibr.martin@gmail.com>
Thu, 15 Jun 2017 14:45:23 +0000 (16:45 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Thu, 15 Jun 2017 14:45:23 +0000 (16:45 +0200)
assets/check-and-fix.py

index f8833d8f70450dc30af58e4d6363ebac2d68c0bd..3c2861d55cf54e59dd3ca1da11635d5255521c9d 100755 (executable)
@@ -199,7 +199,7 @@ def link_to_path(current_file: str, link: str) -> str:
     # when not using subdirs, nothing or "." works for all 3
 
     if link.startswith("..") or link.startswith("/"):
-        print("file: {} bad link: {}", link)
+        print("file: {} bad link: {}".format(current_file, link))
 
     # path relative to wiki root, not curent file
     current_dir = dirname(current_file)