[Python-checkins] r61398 - doctools/trunk/sphinx/linkcheck.py

georg.brandl python-checkins at python.org
Sat Mar 15 09:02:20 CET 2008


Author: georg.brandl
Date: Sat Mar 15 09:02:19 2008
New Revision: 61398

Modified:
   doctools/trunk/sphinx/linkcheck.py
Log:
Make the linkchecker output usable with Emacs' grep-mode.


Modified: doctools/trunk/sphinx/linkcheck.py
==============================================================================
--- doctools/trunk/sphinx/linkcheck.py	(original)
+++ doctools/trunk/sphinx/linkcheck.py	Sat Mar 15 09:02:19 2008
@@ -100,8 +100,8 @@
 
     def write_entry(self, what, docname, line, uri):
         output = open(path.join(self.outdir, 'output.txt'), 'a')
-        output.write("%s:%s [%s] %s\n" % (self.env.doc2path(docname, None),
-                                          line, what, uri))
+        output.write("%s:%s: [%s] %s\n" % (self.env.doc2path(docname, None),
+                                           line, what, uri))
         output.close()
 
     def resolve(self, uri):


More information about the Python-checkins mailing list