Commits

Georg Brandl  committed d81d9ee

Fix the source positions referenced by the "viewcode" extension.

  • Participants
  • Parent commits 7bc1896

Comments (0)

Files changed (2)

 
 * #778: Fix "hide search matches" link on pages linked by search.
 
+* Fix the source positions referenced by the "viewcode" extension.
+
 
 Release 1.0.8 (Sep 23, 2011)
 ============================

File sphinx/pycode/__init__.py

         # cache the source code as well
         pos = self.source.tell()
         self.encoding = detect_encoding(self.source.readline)
+	self.source.seek(pos)
         self.code = self.source.read()
         self.source.seek(pos)