表格md添加短横

This commit is contained in:
我才是二亮
2016-10-14 10:02:17 +08:00
parent 05e66f4668
commit f79d8d6e1c
+2 -2
View File
@@ -1,7 +1,7 @@
# -*- coding:utf-8 -*-
class MarkDownBuild:
table_header = '|字段名称|字段类型|字段含义|\n|:--:|:--:|:--:|\n'
table_header = '|字段名称|字段类型|字段含义|\n|:---:|:---:|:---:|\n'
table_content_template = '|%s|%s|%s|\n'
def __init__(self):
@@ -15,4 +15,4 @@ class MarkDownBuild:
for column in table[1]:
text = text + '|' + column[0] + '|' + column[1] + '|' + column[2] + '|\n'
text += '\n'
return text
return text