表格md添加短横
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# -*- coding:utf-8 -*-
|
# -*- coding:utf-8 -*-
|
||||||
class MarkDownBuild:
|
class MarkDownBuild:
|
||||||
|
|
||||||
table_header = '|字段名称|字段类型|字段含义|\n|:--:|:--:|:--:|\n'
|
table_header = '|字段名称|字段类型|字段含义|\n|:---:|:---:|:---:|\n'
|
||||||
table_content_template = '|%s|%s|%s|\n'
|
table_content_template = '|%s|%s|%s|\n'
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -15,4 +15,4 @@ class MarkDownBuild:
|
|||||||
for column in table[1]:
|
for column in table[1]:
|
||||||
text = text + '|' + column[0] + '|' + column[1] + '|' + column[2] + '|\n'
|
text = text + '|' + column[0] + '|' + column[1] + '|' + column[2] + '|\n'
|
||||||
text += '\n'
|
text += '\n'
|
||||||
return text
|
return text
|
||||||
|
|||||||
Reference in New Issue
Block a user