Skip to content

Commit

Permalink
Enhancement:update generate_md_contents
Browse files Browse the repository at this point in the history
  • Loading branch information
superhj1987 committed Nov 17, 2016
1 parent 6a147c7 commit 964e597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/generate_md_contents
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ reload(sys)
sys.setdefaultencoding( "utf-8" )

contents_template = '* [%s](#%s)\n'
tag_anchor_template = "<a name='%s'></a>%s\n"
tag_anchor_template = " <a name='%s'></a>%s\n"
contents_title = u'## 目录\n'

def usage():
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 964e597

Please # to comment.