diff --git a/lib/pre_tables.py b/lib/pre_tables.py index 0af7c64..8c7373a 100644 --- a/lib/pre_tables.py +++ b/lib/pre_tables.py @@ -2,42 +2,6 @@ from bs4 import BeautifulSoup -html = """ - -
| ID | -Name | -
|---|---|
| 56 | -Matt | -
| 42 | -Colin | -
| 23 | -Lisa | -
| 45 | -John | -
<table> |
- <e> |
-
'
for i, row in enumerate(rows):
+ if i == 1:
+ for j, cell in enumerate(row):
+ text += '|' + '-' * (cols_width[j] + 2)
+ text += '|\n'
+
for j, cell in enumerate(row):
text += '| ' + ''.join(str(node) for node in cell.contents) \
+ ' ' * (cols_width[j] - len(cell.text) + 1)