Permalink
Browse files

Bug fix for vimdoctool (when document contains no markers)

  • Loading branch information...
1 parent d3df4d2 commit 5479ac98c6889eee2b433323f5a350a5c57c0c03 @xolox committed Jun 22, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 vimdoctool.py
View
4 vimdoctool.py
@@ -3,7 +3,7 @@
# Extract & combine function documentation from Vim scripts.
#
# Author: Peter Odding <peter@peterodding.com>
-# Last Change: June 2, 2013
+# Last Change: June 17, 2013
# URL: http://peterodding.com/code/vim/tools/
"""
@@ -68,7 +68,7 @@ def embed_documentation(directory, filename, startlevel=1, vfs=None):
template = handle.read()
if doc_start not in template:
# Nothing to do.
- logger.warn("Markdown document %s doesn't contain start marker: %s", doc_start)
+ logger.warn("Markdown document %s doesn't contain start marker: %s", filename, doc_start)
return
# Extract documentation from Vim scripts.
documentation = generate_documentation(directory, startlevel=startlevel, vfs=vfs)

0 comments on commit 5479ac9

Please sign in to comment.