diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6e40693
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+.DS_Store
+.idea/*
+*.pyc
\ No newline at end of file
diff --git a/MarkdownBuildClass.py b/MarkdownBuildClass.py
index e4f292b..fe70f2a 100755
--- a/MarkdownBuildClass.py
+++ b/MarkdownBuildClass.py
@@ -9,13 +9,13 @@ class MarkDownBuild:
def buildMarkdown(self, table_data):
text = '# 数据库文档\n\n'
- text += '\n\n## 数据表列表\n\n'
+ text += '\n\n## 数据表列表\n\n'
for table in table_data:
- text = text + '* [' + table[0][0] + '(' + table[0][1] + ')](#' + table[0][0] + '_pointer)\n'
- text += '## 数据表说明\n\n'
+ text = text + '* [' + table[0][0] + '(' + table[0][1] + ')](#' + table[0][0] + '_pointer)\n\n'
+ text += '\n\n## 数据表说明\n\n'
for table in table_data:
- text = text + '\n\n'
- text = text + '* ' + table[0][0] + '表(' + table[0][1] + ')[↑](#返回顶部)\n'
+ text = text + '\n\n'
+ text = text + '* ' + table[0][0] + '表(' + table[0][1] + ')[↑](#返回顶部)\n\n'
text += self.table_header
for column in table[1]:
text = text + '|' + column[0] + '|' + column[1] + '|' + column[2] + '|\n'
diff --git a/md/.gitignore b/md/.gitignore
new file mode 100644
index 0000000..aa7847e
--- /dev/null
+++ b/md/.gitignore
@@ -0,0 +1,3 @@
+# 忽略目录下除了.gitignore之外的所有文件
+*
+!.gitignore
\ No newline at end of file