1
0
Fork 0

Output the full path to the file, README.mdpp alone isn't that informative.

This commit is contained in:
Willi Goesgens 2015-08-11 14:15:49 +02:00
parent b6613208d0
commit 15b450f13b
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ def fetch_comments(dirpath):
filepath = os.path.join(root, filename)
file_comments = file_content(filepath)
for comment in file_comments:
fh.write("\n<!-- filename: %s -->\n" % filename)
fh.write("\n<!-- filename: %s -->\n" % filepath)
for _com in comment:
_text = re.sub(r"//(/)+\s*\n", "<br />", _com)
_text = re.sub(r"///+(\s+\s+)([-\*\d])", r" \2", _text)