Skip to content

Commit 9a772ef

Browse files
committed
bugfix: tpl variables
1 parent 96b72c5 commit 9a772ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git-issues-blog.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ def parse_issue_tpl(content, user, path):
9696
issue_body_with_giturl = re.sub(r'!\[(.*)\]\((?!http)(.*)\)', re_format, issue_body, flags = re.M)
9797

9898
# template variables in header and footer
99-
issue_header = parse_issue_tpl(issue_header, GITHUB_USER, p.as_posix())
100-
issue_footer = parse_issue_tpl(issue_footer, GITHUB_USER, p.as_posix())
99+
issue_header_with_tpl = parse_issue_tpl(issue_header, GITHUB_USER, p.as_posix())
100+
issue_footer_with_tpl = parse_issue_tpl(issue_footer, GITHUB_USER, p.as_posix())
101101

102-
issue_content = issue_header + issue_body_with_giturl + issue_footer
102+
issue_content = issue_header_with_tpl + issue_body_with_giturl + issue_footer_with_tpl
103103

104104
# check file exist issue or not by title(POSTS_PATH)
105105
pstr = p.as_posix()

0 commit comments

Comments
 (0)