Revert header validation and leave possibility to empty column

This commit is contained in:
Bruno Miguens
2021-02-08 20:56:18 +00:00
parent 8c28ade348
commit de6f91af0e
2 changed files with 5 additions and 4 deletions

View File

@@ -245,6 +245,7 @@ class MarkdownConverter(object):
columns = row.find_all('td')
if len(headers) > 0:
headers = [head.text.strip() for head in headers]
headers = [head for head in headers if head]
text_data.append(' | '.join(headers))
text_data.append(' | '.join(['---'] * len(headers)))
elif len(columns) > 0: