From 964e59786263a3863790bdb06fb16cdc7b7c362d Mon Sep 17 00:00:00 2001 From: superhj1987 Date: Thu, 17 Nov 2016 19:35:17 +0800 Subject: [PATCH] Enhancement:update generate_md_contents --- bin/generate_md_contents | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/generate_md_contents b/bin/generate_md_contents index 3ee1671..59fdef5 100755 --- a/bin/generate_md_contents +++ b/bin/generate_md_contents @@ -18,7 +18,7 @@ reload(sys) sys.setdefaultencoding( "utf-8" ) contents_template = '* [%s](#%s)\n' -tag_anchor_template = "%s\n" +tag_anchor_template = " %s\n" contents_title = u'## 目录\n' def usage(): @@ -70,7 +70,7 @@ def main(): anchor = tag if anchorFlag else tag.lower() contents.append(' ' * (titleLevel - 2) + contents_template % (tag,anchor)) - line = '#' * titleLevel + ' ' + tag_anchor_template % (tag,anchor) if anchorFlag else line #生成tag描点 + line = '#' * titleLevel + tag_anchor_template % (tag,anchor) if anchorFlag else line #生成tag描点 new_lines.append(line) i = i + 1